Talk:Eiffel (programming language): Difference between revisions

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><sourcesyntaxhighlight></nowiki> tags. This would eliminate the need to include formatting markup in the text of the page itself (which can be a little cumbersome). A downside is that the current support for syntax highlighting of Eiffel (yes, it has Eiffel support already) doesn't perfectly conform to the current syntax presentation guidelines:
 
For example we would get the following
<sourcesyntaxhighlight lang="eiffel">
class
HELLO_WORLD
Line 442:
end
end
</syntaxhighlight>
</source>
 
However, if we were to convert the page to using GeSHi <nowiki><sourcesyntaxhighlight></nowiki> tags then we could move the convention issues over to fixing Eiffel syntax highlighting in GeSHi (there are, apparently, files for each language which can be changed) and not have to mess with markup on this page anymore -- it would all propogate automatically. Thoughts? -- [[User:Leland McInnes|Leland McInnes]] 20:11, 16 May 2007 (UTC)
 
: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><sourcesyntaxhighlight></nowiki> tags are likely to become the standard way to present code, so this article should probably conform for that reason. --[[User:Doradus|Doradus]] 03:07, 19 May 2007 (UTC)
 
::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><sourcesyntaxhighlight></nowiki> tags on inline code only results in it no longer being inline. -- [[User:Leland McInnes|Leland McInnes]] 02:42, 5 July 2007 (UTC)
 
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)