/Sitecore.SyntaxHighlight

Sitecore module for syntax highlighting

Primary LanguageCSS

Sitecore.SyntaxHighlight

Sitecore module for syntax highlighting

Installation

Please read my blog post. I explained how to install and use Sitecore.SyntaxHighlight module there.

http://www.cognifide.com/blogs/sitecore/syntax-highlight-module-for-sitecore/

Features

SyntaxHighlight button:

Click to add a new code snippet or select the existing piece of code before, to load the code content into the editor. new syntaxhighlight button in RichText editor image

Code editing window totally separated from Sitecore:

A new window is decoupled from Sitecore (pure HTML and JS, no XML nor server-side logic), thus it is easy to port it onto other Sitecore versions, with a few style fixes. image

Advanced options:

You are able to highlight some lines, hide gutter (numbers) or start indexing from a different number (for example if yours shows a piece of code that is part of a bigger one). image

Different styling:

Fit the code snippets to your needs. Choose a different theme if your page design do not match the default one. image