Only test this on Chrome, but I'm writing it for my website articles, here's the first one (unfinished) with the WIP highlighter;
http://www.felixjones.co.uk/neo%20websi ... _Renderer/
If you're on firefox/ie please tell me how it looks. You can click on a line and do ctrl c to automatically copy the text on that line (tested only on windows).
What do you guys think? I based the look (And colours) on this board's code highlighter but the colours of the syntax is based on xcode, I have custom stuff that detects anything starting with xi as a class and ending with _t as a custom type.
Here's an image for those who are too lazy to open a webpage and scroll down
Here's HBGames' code highlighter (Set to C++) for comparison if you like that kind of thing;
http://www.felixjones.co.uk/neo%20websi ... _Renderer/
If you're on firefox/ie please tell me how it looks. You can click on a line and do ctrl c to automatically copy the text on that line (tested only on windows).
What do you guys think? I based the look (And colours) on this board's code highlighter but the colours of the syntax is based on xcode, I have custom stuff that detects anything starting with xi as a class and ending with _t as a custom type.
Here's an image for those who are too lazy to open a webpage and scroll down
Here's HBGames' code highlighter (Set to C++) for comparison if you like that kind of thing;
C++:
// Load the screen-space warp material
xiReadFile * const vrFile = fileSystem->CreateAndOpenFile( <span style="color: #666666;">"oculus.wad" );
if ( vrFile ) {
// This file attaches a vertex, geometry and fragment shader for the warping
// Also sets some constant uniforms for the shader
materials.vrMaterial = xiMaterial::CreateFromFile( vrFile );
// Bind the texture to the texture unit 0 slot for this material
materials.vrMaterial->BindTexture( textures.vrTexture, xiMaterial::SLOT_0 );
vrFile->Release(); // Release the vrFile memory
}