Skip to content

Commit

Permalink
Version 1.3.0 marker
Browse files Browse the repository at this point in the history
  • Loading branch information
kaievns committed Jun 24, 2012
1 parent fa45d6a commit 207bd69
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
2012-06-24 Nikolay Nemshilov

* Version 1.3.0
* Making it read the `data-colorifier` attribute for per element options
* Added the `trim` option that allows to switch off the automatic trailing spaces trimming
* `CoffeeScript` highlighting fixes
* `CSS` highlighting fixes

2012-06-10 Nikolay Nemshilov

* Version 1.2.2
Expand Down
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,23 @@ There are a bunch of options you might change if you like
Colorifier.Options.attr = 'data-lang'; // the attribute with language
Colorifier.Options.theme = 'light'; // the color theme to use ('light' or 'dark')
Colorifier.Options.gutter = true; // show/hide the gutter
Colorifier.Options.trim = false; // trim trailing spaces or not

Colorifier.initialize(); // reinitializing with new settings
});

You also can use per unit configuration via the `data-colorifier` attributes

:html
<pre data-lang="ruby" data-colorifier='{"gutter": false}'>
# some code in here
</pre>

__NOTE__ the value of the attribute should be a properly formatted JSON data


## Copyright And License

This project is released under the terms of the MIT license

Copyright (C) 2011 Nikolay Nemshilov
Copyright (C) 2011-2012 Nikolay Nemshilov
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "colorifier",
"version": "1.2.2",
"version": "1.3.0",
"description": "Code highlighting script",
"author": "Nikolay Nemshilov",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/colorifier.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Colorifier extends Element
booleans: ""
regexps: [/([^\*\\\/;])(\/[^\*\/][^\n]*?[^\*\n\\](?!\\\/)\/)/] # default POSIX style regexps

styles2copy: "font-family,font-size,font-weight" +
styles2copy: "font-family,font-size,font-weight,line-height," +
",margin-top,margin-left,margin-right,margin-bottom"

#
Expand Down

0 comments on commit 207bd69

Please sign in to comment.