Page 1 of 1

Code highlighting

Posted: Fri Aug 26, 2011 8:48 am
by Campbell
I have added ADRIFT style code syntax highlighting to the forum. So if you enclose text in the [ code ] tags, it should automatically colour the text as per the textboxes within ADRIFT.

Obviously it isn't perfect - for example it doesn't know about variable names etc, but it should highlight the main things such as references and function names.


Code: Select all

<!-- comments are greyed out -->
%CharacterName[%character%]% [am/are/is] <b>sitting</b> on %TheObject[%ParentOf[%character%]%]%.
Let me know if you find any problems.