Wiki XML syntax highlighting

Content and general development discussion, including quest scripts and server code. TMW Classic is a project comprising the Legacy tmwAthena server & the designated improved engine server based on evolHercules.


Forum rules

This forum houses many years of development, tracing back to some of the earliest posts that exist on the board.

Its current use is for the continued development of the server and game it has always served: TMW Classic.

Post Reply
User avatar
EJlol
TMW Furniture
TMW Furniture
Posts: 1224
Joined: 06 Sep 2005, 08:42

Wiki XML syntax highlighting

Post by EJlol »

Can we have XML syntax highlighting on the wiki?
Something like this: http://www.mediawiki.org/wiki/Extension:GeSHiHighlight

It will make the XML files much more readable :)
User avatar
Jaxad0127
Manasource
Manasource
Posts: 4209
Joined: 01 Nov 2007, 17:35
Location: Internet

Re: Wiki XML syntax highlighting

Post by Jaxad0127 »

Image
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 16:08
Location: Germany

Re: Wiki XML syntax highlighting

Post by Crush »

Is there any code on the wiki which isn't either XML or tmwAthena script code (I think it's quite unlikely that there is a syntax highlighting plugin around for the latter)?
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
User avatar
Jaxad0127
Manasource
Manasource
Posts: 4209
Joined: 01 Nov 2007, 17:35
Location: Internet

Re: Wiki XML syntax highlighting

Post by Jaxad0127 »

Should be bits of C/C++. There is some Python (to build the item/monster pages). Likely a few bits of others here and there. Having a syntax highlighter will make the wiki a better place to put things.
Image
User avatar
o11c
Grand Knight
Grand Knight
Posts: 2262
Joined: 20 Feb 2011, 21:09
Location: ^ ^

Re: Wiki XML syntax highlighting

Post by o11c »

I installed the syntax highlighter used by wikipedia, which is saner than the one linked here.

Example: http://wiki.themanaworld.org/index.php/ ... svg#Source
Former programmer for the TMWA server.
User avatar
Nard
Knight
Knight
Posts: 1113
Joined: 27 Jun 2010, 12:45
Location: France, near Paris

Re: Wiki XML syntax highlighting

Post by Nard »

http://www.mediawiki.org/wiki/Extension ... eColorizer
http://www.mediawiki.org/wiki/Extension ... ighlighter
both use:
http://alexgorbatchev.com/SyntaxHighlighter/
This was precisely one of the reasons why I asked for a js extension. http://wiki.themanaworld.org/index.php/ ... mprovement
It would have been possible to develop a TMWa scripts highlighting too
"The language of everyday life is clogged with sentiment, and the science of human nature has not advanced so far that we can describe individual sentiment in a clear way." Lancelot Hogben, Mathematics for the Million.
“There are two motives for reading a book; one, that you enjoy it; the other, that you can boast about it.” Bertrand Russell, Conquest of Happiness.
"If you optimize everything, you will always be unhappy." Donald Knuth.
Post Reply