Fractal Softworks Forum
October 23, 2018, 12:41:33 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: In-dev patch notes for Starsector 0.9a (10/20/18); New blog post: Portrait Hegemonization (10/16/18);  Starsector 0.8.1a is out!
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Minor Announcement: SyntaxHighlighting now available  (Read 5397 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!