3 Apr 2009 07:13
Problem with syntax highlighting & autocomplete with HTML
phayz <russelldickenson <at> gmail.com>
2009-04-03 05:13:42 GMT
2009-04-03 05:13:42 GMT
I often use SciTE as an HTML editor but recently have discovered some behaviour that I can't explain. To speed my editing I have autocompletion of tags turned on. This works as expected when typing in a valid tag but it also "works" when I type an invalid tag, and not as I expect. For example, if I type "<this is a test" and close the invalid tag with ">", SciTE automatically inserts "</this>" at the cursor - i.e. at the end of the "<this is a test>". Is there any way I can prevent SciTE from highlighting invalid tags? I don't rely on SciTE to check the validity of my HTML documents, but I'd prefer that invalid tags weren't highlighted. In another example I am often inserting XHTML <img> tags but they're not being highlighted correctly. For example, if I type <img src="image.png" alt="Lovely picture" />, everything up to the closing "/>" is highlighted correctly. However the closing "/>" appears in the colours reserved for "Text" (according to the html.properties file). Is my XHTML code invalid, is there more I need to do to have this code highlighted correctly, or is this a limitation of SciTE/Scintilla? Regards, Russell Dickenson Australia --~--~---------~--~----~------------~-------~--~----~(Continue reading)
>
> Write a script that removes other Lex*.cxx files, runs LexGen.py
> and build. Something like (in Python):
>
> import glob, os
> wanted = 'CPP Pascal Python'
> wantedFiles = set('Lex'+x+'.cxx' for x in wanted.split())
RSS Feed