From: Mercurio X <mer...@ym...> - 2009-11-07 18:51:30
|
Hi I'd like to get Geshi to colourise compiler pragmas which have start and end delimiters. For example, Pascal has (*$ some-pragma *) and Modula-2 has <* some-pragma *>. If I use the multi-line comment section, then pragmas get colourised the same as multi-line comments. There seems to be no way to colourise different types of multi-line comments differently as there is for different single-line comments. I also tried the regexp section but for some reason Geshi does not seem to like angular brackets inside regex. When I define "\*(.*)\*" that matches any string that starts and ends with an asterisk. However, if I define "<\*(.*)\*>" that does not match any strings that start with <* and end with *> I also tried to double the backslash, but that didn't work either. Is there anything that makes Geshi reject angular brackets in regex? Can somebody shed some light on what's going on there? thanks in advance. |