Content deleted Content added
Notification of altered sources needing review #IABot (v1.5.2) |
m Task 70: Update syntaxhighlight tags - remove use of deprecated <source> tags |
||
Line 427:
== Font conventions (again) ==
Another possible approach to handlign syntax conventions has become available. Wikipedia now supports GeSHi[http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi], which provides automated syntax highlighting by use of <nowiki><
For example we would get the following
<
class
HELLO_WORLD
Line 442:
end
end
</syntaxhighlight>
However, if we were to convert the page to using GeSHi <nowiki><
:I like this proposal. GeSHi seems to use CSS so it's reasonable to think users could pick how they want to view the code. For instance, I could imagine little buttons on every source snippet that would switch between formatted and unformatted views. Regardless, with GeSHi support, I think these <nowiki><
::It is done. Certainyl it makes maintainability of code samples much easier. It also has the bonus of actually taggin code as Eiffel code specifically. Unfortunately it doesn't work fo inline code. -- [[User:Leland McInnes|Leland McInnes]] 06:39, 19 May 2007 (UTC)
Line 452:
:::Why wouldn't it work for inline code? --[[User:Doradus|Doradus]] 21:55, 26 June 2007 (UTC)
::::Because GeSHi automatically renders into blocks, so putting <nowiki><
Nice to see the article has recovered from its brief bout of blue-font insanity. I think the way it's done now, with a "style conventions" section, is just right. --[[User:Doradus|Doradus]] 21:54, 26 June 2007 (UTC)
|