An online tool to display formatted source code
HTML JavaScript CSS
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.
brushes
img
inline-js-and-css
shi
.gitignore
README.md
examples.html
human.txt
index-non-minified.html
index.html

README.md

Syntaxhighlight.in

Syntaxhighlight.in is an online tool to display formatted source code. See syntaxhighlight.in

Background

We want to display formatted source code in our web pages without having to load more JS/CSS than whe need to. And to avoid a flash of un-styled content (aka FOUC), we prefer not to do that dynamically.

Install

Download the directory and you're good to go. Note that because this is a standalone app (a single page app). I decided to minify both CSS and JS code and include them inline.

Edit

Because I'm using these files on http://syntaxhighlight.in, you'll need to edit:

  • humant.txt
  • Google Analytics script block
  • GitHub ribbon

Author

This was created by Thierry Koblentz. You can follow me on Twitter as @thierrykoblentz.