Syntax colouring



Enclosed is a user's diff to html.syntax that lets the editor colour fully-alphanumeric entities instead of just the alphabetic ones. After all, ½ is a legal entity (the fraction 1/2).

-+- 8< -+-
--- html.syntax.old    2007-05-14 14:30:40.000000000 +0000
+++ html.syntax    2007-05-14 14:30:32.000000000 +0000
@@ -1,7 +1,7 @@
# Syntax rules for the HyperText Markup Language

context default
- keyword &\[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\]; brightgreen + keyword &\[0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\]; brightgreen
    keyword &#\{xX\}\[0123456789abcdefABCDEF\]; brightgreen
    keyword &#\[0123456789\]; brightgreen
    spellcheck
-+- 8< -+-

Also a WIBNI: Case-independent syntax-colouring option for languages that flatten case. After all, it's just a Simple Matter Of Programming. <oh-so-innocent look>

Reynir H. Stefánsson (reynirhs mi is)
--
That mechanic must've been pulling my leg.
I can't find a durn thing wrong with the muffler bearings.





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]