Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/miklb/habarihighlight

Dead simple plugin implementing https://github.com/isagalaev/highlight.js in Habari.
https://github.com/miklb/habarihighlight

Last synced: 10 days ago
JSON representation

Dead simple plugin implementing https://github.com/isagalaev/highlight.js in Habari.

Awesome Lists containing this project

README

        

# Habari Highlight #

A drop dead simple Habari plugin to load the [highlight.js](https://github.com/isagalaev/highlight.js) library.

## Usage ##
This will highlight all code on the page marked up as `

 .. 
`.

If you are using HabariMarkdown plugin, you can simply use a code fence:

`~~~`

Your code here.

`~~~`

Additionally, you can apply a class to the `` to help highlight.js know what language you are using (though I believe the script has ability to detect common languages and attempts to apply.)

Again, if using Markdown, to set the class it is as easy as

`~~~php`