https://github.com/trustmaster/cot-syntaxhighlighter
SyntaxHighlighter plugin for Cotonti
https://github.com/trustmaster/cot-syntaxhighlighter
Last synced: 12 months ago
JSON representation
SyntaxHighlighter plugin for Cotonti
- Host: GitHub
- URL: https://github.com/trustmaster/cot-syntaxhighlighter
- Owner: trustmaster
- Created: 2011-07-10T21:10:13.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2015-12-14T18:14:19.000Z (over 10 years ago)
- Last Synced: 2025-04-29T01:58:04.759Z (about 1 year ago)
- Language: CSS
- Homepage:
- Size: 35.2 KB
- Stars: 0
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Syntaxhighlighter
This is ready-to-use Cotonti port of SyntaxHighligher by Alex Gorbatchev.
http://alexgorbatchev.com/SyntaxHighlighter/
## Installation
1. Install the plugin.
2. Make sure {FOOTER_RC} tag is present in your theme's footer.tpl.
3. Select any color theme in plugin settings if you need
## Usage
Usage with HTML parsing:
To highlight source code with some specific language, use HTML tags like this:
```
Your code here
```
The list of available brushes: http://alexgorbatchev.com/SyntaxHighlighter/manual/brushes/
Plugin for CKEditor: http://code.google.com/p/ckeditor-syntaxhighlight/
## Color themes
Plugin bundled with a pack of [predefined color themes](http://alexgorbatchev.com/SyntaxHighlighter/manual/themes/).
But you can adjust some of it to suit you needs with Cotonti theme colors. To do that copy theme CSS file from
`syntaxhighlighter/lib/styles` folder to your theme sub folder named `styles` — `themes/themename/styles`.
Now you can change it for your needs or create your own. All CSS files located in `themes/themename/styles` folder
override default ones with same names.