Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/miklb/habarihighlight
- Owner: miklb
- Created: 2014-01-30T06:56:44.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-11-22T07:28:52.000Z (about 10 years ago)
- Last Synced: 2024-10-20T02:48:21.070Z (2 months ago)
- Language: PHP
- Homepage:
- Size: 144 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`