summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/syntax_highlight.coffee
Commit message (Collapse)AuthorAgeFilesLines
* Add specs for syntax_highlight JSRobert Speicher2015-09-101-1/+9
| | | | | | | Also makes it work when given a parent element containing a `.js-syntax-highlight` element so for dynamically-added things like notes or Markdown previews, we can more accurately target just the element we care about.
* Add syntax highlight scheme to notes rendered client-siders-highlight-new-notesRobert Speicher2015-09-041-1/+4
|
* Remove user_color_scheme_classRobert Speicher2015-08-251-0/+9
Instead of rendering this value server-side, we use Javascript and Gon to apply the user's color scheme (or the default) to any syntax highlighted code blocks. This will make it easier to cache these blocks in the future because they're no longer state-dependent.