Adam's Lair Forum

game development and casual madness
It is currently 2017/04/28, 14:10

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Syntax Highlighting
PostPosted: 2015/03/26, 12:49 
Site Admin
Site Admin
User avatar

Joined: 2013/05/11, 22:30
Posts: 1949
Location: Germany
Role: Professional
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.

_________________
Blog | GitHub | Twitter (@Adams_Lair)


Top
 Profile  
 
 Post subject: Re: Syntax Highlighting
PostPosted: 2015/03/26, 15:06 
Site Admin
Site Admin
User avatar

Joined: 2013/05/11, 22:30
Posts: 1949
Location: Germany
Role: Professional
Another quick change: Now using the popular Source Code Pro font for code listings as a primary Font.

_________________
Blog | GitHub | Twitter (@Adams_Lair)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group