User talk:Objeck: Difference between revisions

→‎Language tag: new section
(Welcome!)
 
(→‎Language tag: new section)
Line 6:
 
Again, welcome! --[[User:Short Circuit|Michael Mol]] 03:35, 17 May 2010 (UTC)
 
== Language tag ==
 
Hello, I've seen you changed the language tag for some Objeck examples to <code>cpp</code>. While this may look better in the short run it's not a very good idea here as it will try highlighting your source as C++, obviously. This may conflict with the Object syntax (don't know exactly but one might never know) and it will also not highlight keywords your language has but C++ doesn't, such as <code>bundle</code>, <code>native</code>, etc. Arguably it ''does'' look nicer than without highlighting at all, but that's only until someone creates syntax highlighting for Objeck. For a start you could use [http://rosettacode.org/geshi/ AutoGeSHi] to create such a file and get it included. Here on Rosetta Code it's actually preferred to have each language example use its own language tag to ensure that (a) all examples have a defined language (as opposed to just use <code>&lt;pre></code> where syntax highlighting is unavailable) and (b) highlighting can be added by just providing the GeSHi language file instead of also going through every task in that language and replace the previously-used language tag. —[[User:Hypftier|Johannes Rössel]] 03:25, 1 July 2010 (UTC)
Anonymous user