A Syntax Highlighter built in PHP and jQuery that supports customizable languages and themes.
It can highlight from a URL, a local file or Wordpress post text. Crayon makes it easy to manage Language files and define
custom language elements with regular expressions.
It also supports some neat features like:
- Integrated Theme Editor!
- Tag Editor in both Visual & HTML editors
- Toggled plain code
- Toggled line numbers
- Copy/paste code
- Open code in a new window (popup)
- Line wrapping
- Code expanding
- Minimizing
- bbPress 2 support
- Converting legacy code in blog posts/comments to <pre>
- Remote request caching
- Mixed Language Highlighting in a single Crayon
- Mini Tags like [php][/php]
- Inline Tags floating in sentences
- Crayons in comments
- `Backquotes` become <code>
- <pre> tag support, option to use
setting-value
in the class attribute
- Valid HTML 5 markup
- Visual & HTML editor compatible
- Mobile/touchscreen device detection
- Mouse event interaction (showing plain code on double click, toolbar on mouseover)
- Tab sizes
- Code title
- Toggled toolbar
- Retina buttons
- Striped lines
- Line marking (for important lines)
- Line ranges (showing only parts of the code)
- Starting line number (default is 1)
- Local directory to search for local files
- File extension detection
- Live Preview in settings
- Dimensions, margins, alignment, font-size, line-height, float
- Extensive error logging
Links
Contributions
There are many ways you can help!
- Make a Theme and share
- Add support for your favourite Language
- Write a post about your pastel experiences and share
- Donate to the project
Supported Languages
Languages are defined in language files using Regular Expressions to capture elements.
See the Crayon Language File Specification to learn how to make your own.
International Languages
Articles
These are helpful for discovering new features.
The Press
A handful of articles from others written about Crayon, thanks guys!
Donations
Thanks to all those who donate to the project:
- Helen McManus, (http://invisiblepixels.org/InvisibleWords/), Netherlands
- Thomas Fee, UK
- Julie Knowles, (http://knowlesfamily.com/), USA
- Peter Kriegel, (http://www.powershell-group.eu/), Germany
- Geo My WP, (http://geomywp.com), US
- Raffael Vogler, Germany
- Erdal Cicek, Turkey
- Cloud-VPS, Poland
- ?ukasz Bereza, Poland
- Laurence Scotford, UK
- Goretity Árpád László, (http://h2co3.org/blog), Hungary
- AdsProvider, USA
- Alicia Ramirez, (http://aliciaramirez.com/), Canada
- William Eisert, USA
- Inappix Development, (http://www.inappix.com/), Switzerland
- Stephen Sant, (http://thesantfamily.net/), UK
- David Rodriguez, (http://davidarodriguez.com/), USA
- Chris Moore, (http://moorecreativeideas.com/), USA
- Sohail Ahmed, (http://sohail.io.com/), USA
- Vanessa Garcia Espin, Spain
- Samad Malik, (http://samadmalik.com/), USA
- Wabbit Wanch Design, (http://www.wabbitwanch.com/), Canada
- Inopox Ltd, (http://inopox.com/), Cyprus
- Kho Minh Vi, (http://khominhvi.com/), UK
- Ivan Churakov, Russia
- Carla Macías González, Mexico
- Saulius Stonys, Lithuania
- Konstantin Sabel, Germany
- Luigi Massa, (http://bwlab.it/), Italy
- Anthony Steiner, (http://steinerd.com/), USA
- Alexander Harvey, (http://alexharvey.eu/), UK
- Minhazul Haque Shawon, Cyprus
- Raam Dev, (http://raamdev.com/), USA
- Scot Ranney, (http://scotsscripts.com/), USA
- Nico Hartung, (http://www.loggn.de/), Germany
- Joseph DeVenuta, USA
- Iván Prego García, Spain
- Johannes Luijten, (http://www.tweaking4all.com/, http://www.weethet.nl/), USA
- Jack Fruh, (http://basementjack.com/), USA
- Ross Barbieri, USA
- Will, Simple Phishing Toolkit (http://www.sptoolkit.com/), USA
- Tricia Aanderud, USA
- Tarek Sakr, (http://centrivision.com/), USA
- Jeff Benshetler, (http://branchpoint.net/), USA
- Oldrich Strachota, (http://www.strachota.net/), Czech Republic
- Dividend Ninja, (http://dividendninja.com/), Canada
- Chris Wiegman, (http://bit51.com/), USA
- Sven Meier, (http://www.codesix.net/), Germany
- Christy Wiggins, (http://www.jinxyisms.com/), USA
- eSnipe, Inc. (http://esnipe.com/), USA (again!)
- Aliseya Wright, (http://blog.xoxothemes.com/), USA
- Jeremy Worboys (http://complexcompulsions.com/), Australia
- Steve McGough, Spider Creations, LLC. (http://spidercreations.net/), USA
- eSnipe, Inc. (http://esnipe.com/), USA
- Gerald Drouillard (http://www.drouillard.biz/), USA
- Greg Pettit (http://blog.monkey-house.ca/), Canada
- Waimanu Solutions (http://daveblog.waimanu.web44.net/), USA
- Andrew McDonnell (http://blog.oldcomputerjunk.net/), Australia
- Perry Bonewell (http://pointatthemoon.co.uk/), United Kingdom
- Nick Weisser (http://www.openstream.ch/), Switzerland