Adam's Lair Forum
https://forum.adamslair.net:80/

Syntax Highlighting
https://forum.adamslair.net:80/viewtopic.php?f=12&t=443
Page 1 of 1

Author:  Adam [ 2015/03/26, 12:49 ]
Post subject:  Syntax Highlighting

There is now a (very simple) form of syntax highlighting in code blocks using highlight.js. Let me know if you have any issues with this ^^

Code:
using System;
using System.Collections.Generic;
using System.Text;

namespace SyntaxHighlighting
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Hello, colorful world!");
            Console.ReadLine();
        }
    }
}


While at it, I also changed the style of code and quote boxes to be a little more concise.

Author:  Adam [ 2015/03/26, 15:06 ]
Post subject:  Re: Syntax Highlighting

Another quick change: Now using the popular Source Code Pro font for code listings as a primary Font.

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/