Starsector > Announcements

Minor Announcement: SyntaxHighlighting now available


Thanks to Alex, you may now use


to show syntax highlighted code in a forum post! There are of course other languages available as well. A list of valid syntax aliases is here:
Note that it will not display in the "Preview" mode, but it does work when you really post. It's a known, minor shortcoming of the SMF plugin, but not really important once you know that it works.


--- Code: java ---for (int i = 0; i < 100; i++) {

--- End code ---

Update: after the forum upgrade to SMF 2, I've had to switch to a different syntax highlighting mod, Code Highlighting.

The syntax is largely the same, but it doesn't handle //-style comments well (everything after that is treated as a comment), so one has to use /* */ style comments instead.


[0] Message Index

Go to full version