Rosetta Code:Village Pump/Syntax highlighting: Difference between revisions
Rosetta Code:Village Pump/Syntax highlighting (view source)
Revision as of 23:48, 14 November 2009
, 14 years ago→Non-ASCII characters and unrecognized languages: Likely fix.
Underscore (talk | contribs) (→Language tags: GeSHi has highlighting for ColdFusion under the name "cfm".) |
(→Non-ASCII characters and unrecognized languages: Likely fix.) |
||
Line 376:
The first three smiley faces come through fine, but the last is somehow corrupted. It appears that in general, if GeSHi doesn't recognize a language name, any non-ASCII characters between the lang tags get screwed up. I noticed this bug when using non-ASCII operators in Perl 6 examples. —[[User:Underscore|Underscore]] 00:19, 7 November 2009 (UTC)
: I can <em>probably</em> fix that by changing my "not found" code path when it looks at languages. It's using a PHP character-escaping builtin that's not Unicode-safe, as a brute method of guarding against code injection. --[[User:Short Circuit|Michael Mol]] 23:48, 14 November 2009 (UTC)
= Webform-driven language-file generator =
|