Skip to content

Instantly share code, notes, and snippets.

@elegos
Created June 4, 2013 11:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elegos/5705355 to your computer and use it in GitHub Desktop.
Save elegos/5705355 to your computer and use it in GitHub Desktop.
Add support for highlight.js in AnchorCMS (any markdown software without the possibility to add classes to <code> tag)! Usage: the first line of a code block must start and contain three colons and the language name AND NOTHING ELSE, for example :::php
// add this in your <head> tag
// change "default" with one of the available as described here: http://softwaremaniacs.org/soft/highlight/en/download/
<link rel="stylesheet" type="text/css" href="http://yandex.st/highlightjs/7.3/styles/default.min.css"></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment