Skip to content

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

License

Notifications You must be signed in to change notification settings

fansoro/fansoro-plugin-highlight

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages