jEdit Community - Resources for users of the jEdit Text Editor
Python escape quote syntax highlighting wrong
Submitted by dj_segfault on Tuesday, 17 April, 2007 - 13:53
Using jEdit 4.3 pre 9, in my python code, escaped quotes (\") are confusing the syntax highlighting. For instance, in the line req.write(" ") Everything is normal up to the first \". The [" ] is black, then from [")] on throughout the program up to the next quote on the next line is considered a string. So everything is pretty much reversed after that. It's very annoying. I've been forcing them to PHP mode just so my eyes don't go crosseyed with all the pink code. Is there an update to the python syntax highlighting? I tried comparing the Python and PHP configs, but it was too confusing for me to follow. I did find http://community.jedit.org/?q=node/view/1930#1625 which is relevant, but it isn't explicit enough on how to fix the problem for someone who hasn't worked on the mode files before. Besides, I can't be the only one who'se seeing this. Thanks.
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
I had this problem too, just
by dgraham on Fri, 04/05/2007 - 13:18
I had this problem too, just edit the python mode to change:


<RULES IGNORE_CASE="FALSE" ESCAPE="\" HIGHLIGHT_DIGITS="TRUE">

into:

<RULES IGNORE_CASE="FALSE" HIGHLIGHT_DIGITS="TRUE">
 
Why does this fix work?
by icengineer on Fri, 03/08/2007 - 00:28
Can anyone explain why this fix works?

Why does removing the ESCAPE attribute make it recognize the escape character? The same change in the C++ mode file has the expected effect: \' and \" are no longer recognized as escaped quotes. Is there something in the python.xml file that causes the ESCAPE attribute to be interpreted differently?
User login
Browse archives
« April 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
 
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   82349
Context Free Art (*.cfdg)   0.31   46055
BBEdit scheme   1.0   18595
JBuilder scheme   .001   18495
ColdFusion scheme   1.0   18024
R Edit Mode - extensive version   0.1   17473
Advanced HTML edit mode   1.0   16206
Matlab Edit Mode   1.0   16068
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14293