Syntax highlighting doesn't work for multi-line comments ( *.py and *.html)

Asked by Gruffudd Williams

Syntax highlighting is only displayed on the first line of a python multiline string or within the first element of commented-out html block.

The rest of the syntax highlighting works fine (keywords in python and html picked out) so gedit is definitely applying the correct style.

e.g. In a *.py file, the whole of the following multiline string should be highlighted in pink, but only the first line is highlighted.

""" This line has the correct syntax highlight colour
This line is not highlighted
"""

..and in a html file, only the first element ( the <!--ul> )is shown as commented:

<!--ul><li></li>
</ul-->

Version of gedit: 2.18.1
Kernel: 2.6.20-16-generic

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gedit Edit question
Assignee:
No assignee Edit question
Solved by:
Andrea Corbellini
Solved:
Last query:
Last reply:
Revision history for this message
Gruffudd Williams (gruffudd) said :
#1

I thought the problem might be down to my language setting (Welsh) but I've tried it with English UK and I get the same problem.

Revision history for this message
Gruffudd Williams (gruffudd) said :
#2

Multiline syntax highlighting works for me in *.js files, using /* ... */

Revision history for this message
Rodrigo Donado (frezeeer) said :
#3

Hi:

it works for me, version 2.20.1 so I guess it has being fixed. you can upgrade to Gutsy (that is what I use) in a week (its still in beta stage) but it works, the 3 lines appear in pink, as they should.

Revision history for this message
Best Andrea Corbellini (andrea.corbellini) said :
#4

I'm using Feisty and it works. Try to check highlight settings.

Revision history for this message
Gruffudd Williams (gruffudd) said :
#5

Thanks, upgraded to ubuntu 7.10 with gedit 2.20.1 and it works now :)