An open API service indexing awesome lists of open source software.

https://github.com/alan-null/sitecore.syntaxhighlight

Sitecore module for syntax highlighting
https://github.com/alan-null/sitecore.syntaxhighlight

Last synced: 3 months ago
JSON representation

Sitecore module for syntax highlighting

Awesome Lists containing this project

README

        

# 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](https://user-images.githubusercontent.com/6848691/36947193-e1835fbe-1fc8-11e8-8d5c-0e28b69e55b8.png)

### 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](https://user-images.githubusercontent.com/6848691/36947196-e55cf582-1fc8-11e8-96aa-23a6fafc0cc1.png)

### 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](https://user-images.githubusercontent.com/6848691/36947199-e8a96ee6-1fc8-11e8-97fe-6c05f48f66fd.png)

### Different styling:
Fit the code snippets to your needs. Choose a different theme if your page design do not match the default one.
![image](https://user-images.githubusercontent.com/6848691/36947201-ed15215a-1fc8-11e8-8a58-fe9f3b1ca739.png)