jeremydouglass / rosetta_examples_p5

Example set from Rosetta Code for P5 (Processing)
Other
10 stars 2 forks source link

Syntax highlighting tag for wiki #48

Open jeremydouglass opened 4 years ago

jeremydouglass commented 4 years ago

java vs processing?

Here is the wiki guidance:

Make sure to use the standard identifier for your language even if GeSHi doesn't know how to highlight it yet. If your language isn't in the list, make up an identifier (consisting entirely of lowercase alphanumeric ASCII characters; make it short yet unambiguous) and add it to the list. That way, if your language is supported in a future release of GeSHi, Rosetta Code can immediately benefit.

https://rosettacode.org/wiki/Help:Syntax_Highlighting#Supported_languages

On the one hand, Processing does not have the same syntax as Java -- it is missing a bunch of required keywords on almost every declaration, for example. On the other hand, Java syntax highlighting might be "good enough" in many cases that it should get visible results. So we could recommend java for now, and then change them all to processing later if there is GeSHi support... given that it doesn't look like GeSHi has been actively developed since ~2014 (!)

https://github.com/paladox/geshi-1.1/network