Highlight plugin for Fansoro adds a powerful code highlighting functionality with Highlight.js
PHP
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
CHANGELOG.md
LICENSE
README.md
highlight.php
highlight.yml
screenshot.png

README.md

Highlight

Highlight

Highlight plugin for Fansoro adds a powerful code highlighting functionality with Highlight.js

  • 137 languages and 65 styles (live demo)
  • automatic language detection
  • multi-language code highlighting
  • works with any markup
  • compatible with any js framework

Installation

See this instruction

Usage

```php
function foo($attributes) {
    // Extract attributes
    extract($attributes);

    // text
    if (isset($text)) $text = $text; else $text = '';

    // return
    return $text;
}
```

Settings

enabled: true  # or `false` to disable the plugin
theme: monokai # or other from the list below

Themes

Check out a live demo of these themes!

arta ascetic atelier-dune.dark
atelier-dune.light atelier-forest.dark atelier-forest.light
atelier-heath.dark atelier-heath.light atelier-lakeside.dark
atelier-lakeside.light atelier-seaside.dark atelier-seaside.light
brown_paper codepen-embed color-brewer
dark default docco
far foundation github
googlecode hybrid idea
ir_black kimbie.dark kimbie.light
learn magula mono-blue
monokai_sublime monokai obsidian
paraiso.dark paraiso.light pojoaque
railscasts rainbow school_book
solarized_dark solarized_light sunburst
tomorrow-night-blue tomorrow-night-bright tomorrow-night-eighties
tomorrow-night tomorrow vs
xcode zenburn
agate androidstudio atelier-cave.dark
atelier-cave.light atelier-estuary.dark atelier-estuary.light
atelier-plateau.dark atelier-plateau.light atelier-savanna.dark
atelier-savanna.light atelier-sulphurpool.dark atelier-sulphurpool.light
darkula github-gist pojoaque
school_bank

License

See LICENSE