Fractal Softworks Forum
February 19, 2019, 08:32:07 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Starsector 0.9a is out! (11/16/18); In-dev patch notes for 0.9.1a (01/31/19)
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Minor Announcement: SyntaxHighlighting now available  (Read 5727 times)
Trylobot
Global Moderator
Admiral
*****
Posts: 1163



View Profile WWW
« on: October 01, 2013, 07:24:30 PM »

Thanks to Alex, you may now use

[code=java]your.code.here[/code]

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: http://alexgorbatchev.com/SyntaxHighlighter/manual/brushes/
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.


Demo:

Code: (java)

for (int i = 0; i < 100; i++) {
    System.out.println("Test");
}
Logged

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2006-2011, Simple Machines
Simple Audio Video Embedder
Valid XHTML 1.0! Valid CSS!