Rosetta Code:Village Pump/Lang-tag bot: Difference between revisions

TI-89 BASIC needs not-geshi. Please revert.
(→‎Handle nowiki tags: Yeah, that was an oversight.)
(TI-89 BASIC needs not-geshi. Please revert.)
Line 39:
A bit late now that Underbot's finished, but a potential future enhancement might be to remove <nowiki><nowiki></nowiki> tags from inside blocks of code when Underbot adds missing <nowiki><lang></nowiki> tags.--[[User:Tikkanz|Tikkanz]] 21:35, 22 November 2009 (UTC)
:It does remove &lt;nowiki&gt;s when they're surrounding an entire block of code (see line 287 of the source), but not in any other case. I'd (wrongly) supposed nobody would enclose only part of their code in &lt;nowiki&gt;s, since it would be easier to just &lt;nowiki&gt; the whole thing. Oh, well. —[[User:Underscore|Underscore]] ([[User talk:Underscore|Talk]]) 23:31, 22 November 2009 (UTC)
 
==TI-89 BASIC==
Until such time as GeSHI integration on RC doesn't mangle all non-ASCII characters, it must not be used for TI-89 BASIC (or APL etc.). Please change UnderBot to, in the particular case of TI-89 BASIC, use instead the tags <code><nowiki><pre style="font-family:'TI Uni'">...</pre></nowiki></code>, and rerun it, as it has broken most of the TI-89 examples. Besides ensuring that the TI proprietary characters show up properly given the font, the styled pre is also a recognizable sequence which we can change back to a specific lang tag once GeSHI isn't broken.
 
Also, I think it's a bad idea in general for the bot to strip out tags with attributes it doesn't expect (pre style= here), since they indicate some special situation. —[[User:Kevin Reid|Kevin Reid]] 17:22, 1 December 2009 (UTC)