ADRIFT Forum


The place to discuss the ADRIFT Interactive Fiction toolkit

Code highlighting

Announcements about ADRIFT, this Forum, the website and anything else relevant.

For more information visit the main ADRIFT Website

Code highlighting

Postby Campbell » Fri Aug 26, 2011 7:48 am

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.

E.g.

adrift 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.
ADRIFT Developer developer.
User avatar
Campbell
Site Admin
 
Posts: 4660
Joined: Sun Jun 23, 2002 11:05 am
Location: Edinburgh, Scotland

Return to News and Announcements

Who is online

Users browsing this forum: No registered users and 1 guest

cron