jEdit Community - Resources for users of the jEdit Text Editor
How to correct syntax highlighting for comment: @throws in php edit mode
Submitted by Denouncer on Sunday, 19 August, 2012 - 12:08
Hi all,

I'm hoping someone can help. I've noticed that in the latest version of jEdit that if I use "@throws" in a function comment (PHPDoc style) the syntax highlighting seems to go out of whack. Basically, if it sees @throws... inside a comment block, it highlights the line correctly, but then all proceeding lines seem to be highlighted as comments as well. For example:

/**
* Test
* @throws Exception
*/
public function test() {

}

Basically, instead of it seeing "*/" as the end of the comments, it continues to highlight "public function" as a comment as well. This didn't happen in earlier versions, from what I can tell, only newer versions.

Anyone know how I can fix this?

Thanks
User login
Browse archives
« March 2024  
MoTuWeThFrSaSu
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   82338
Context Free Art (*.cfdg)   0.31   46042
JBuilder scheme   .001   18487
BBEdit scheme   1.0   18107
ColdFusion scheme   1.0   18015
R Edit Mode - extensive version   0.1   17461
Advanced HTML edit mode   1.0   16194
Matlab Edit Mode   1.0   16057
jEdit XP icons   1.0   15220
XP icons for jEdit   1.1   14281