0.1.5 • Published 9 years ago

ep_syntaxhighlighting v0.1.5

Weekly downloads
21
License
-
Repository
github
Last release
9 years ago

This plugin is no longer supported... See https://github.com/LaKing/ep_codepad for an alternative.


SyntaxHighlighter plugin for etherpad-lite

Based on a modified version of Alex Gorbatchev's SyntaxHighlighter. Available syntaxes are displayed in a select element in the etherpad-lite menu bar.

Adding Syntaxes:

To add a new syntax variant, copy the javascript file for the new syntax into the EP_ROOT/node_modules/ep_syntaxhighlighting/static/js directory, then add it to the end of EP_ROOT/node_modules/ep_syntaxhighlighting/templates/syntaxHighlightingScripts.ejs as follows:

Finally, add an option to EP_ROOT/node_modules/ep_syntaxhighlighting/templates/syntaxHighlightingEditbarButtons.ejs such as:

Removing Syntaxes:

If a syntax variant is included that you don't want, simply remove the corresponding <option.../option> line in the EP_ROOT/node_modules/ep_syntaxhighlighting/templates/syntaxHighlightingEditbarButtons.ejs file.

SyntaxHighlighter Themes:

I have found that the themes with background colors don't work well because the background color will only apply to lines and not the full background of the etherpad-lite pad. Your mileage may vary.

0.1.5

9 years ago

0.1.4

11 years ago

0.1.3

11 years ago

0.1.2

12 years ago

0.1.1

12 years ago

0.1.0

12 years ago