Commit Graph

376 Commits

Author SHA1 Message Date
Andreas Rohner 77c6ea1780 Allow users to use their own element selector
Add the parameter 'data-selector' to the script tag, to
allow users to set the selector used to query for code elements.
2016-01-26 04:21:58 +01:00
Andreas Rohner 1eb9a5fb8c Update auto-generated files 2016-01-17 13:56:32 +01:00
Andreas Rohner 3656a08508 Remove unnecessary check for the existence of the addEventListener
method

All target browsers for Prism support this method now. The check
is therefore obsolete.
2015-12-30 13:28:00 +01:00
Andreas Rohner a912063c49 Update auto-generated files and minified versions 2015-12-30 00:56:38 +01:00
Andreas Rohner 97d0f49a3c Update auto-generated files 2015-12-26 09:50:23 +01:00
Golmote 2ba763e093 Add support for Parser 2015-10-13 21:08:49 +02:00
Golmote e135947c08 Run gulp and update tests after #801 merge 2015-10-10 12:48:04 +02:00
Golmote 29643f4e46 Simplify patterns for <style> and <script> tags 2015-10-06 08:48:21 +02:00
Golmote 0e93b41718 Fix code indentation style 2015-09-24 09:16:57 +02:00
Andreas Rohner 09be99e740 Improve performance by doing more work in the worker
Currently the worker tokenizes the code and then turns it into a
JSON string. This JSON string is sent back to the main thread as a
message and parsed. Then it is turned into a HTML string and
stored in the attribute env.highlightedCode.

These conversions into JSON are unnecessary, because we can create
the HTML string directly in the worker and send it as a message to
the main thread.

Signed-off-by: Andreas Rohner <andreas.rohner@gmx.net>
2015-09-23 20:34:29 +02:00
Golmote 792e35cf1c C-like: optimized string regexp 2015-09-16 22:38:15 +02:00
Golmote 283691ecd8 Markup: don't allow dot inside tag name 2015-09-06 11:17:35 +02:00
Golmote b2f14d961e Merge branch 'plugin-jsonp' of https://github.com/nauzilus/prism into gh-pages
Conflicts:
	components/prism-core.min.js
2015-09-04 08:19:21 +02:00
Golmote 071c3ddf76 Merge branch 'c-fixes' of https://github.com/rygorous/prism into gh-pages
Conflicts:
	components/prism-c.js
	components/prism-c.min.js
	components/prism-clike.js
	components/prism-clike.min.js

+ added tests
2015-09-04 00:13:37 +02:00
Golmote 2f9fe1efb8 Added some language aliases. 2015-09-03 23:39:16 +02:00
Golmote 29e26dc379 JavaScript: Allow for all non-ASCII characters in function names. Fix #400 2015-09-03 23:17:56 +02:00
Golmote e42a228911 Explicitly make the Worker close itself after highlighting, so that users have control on this behaviour when directly using Prism inside a Worker. Fix #492 2015-09-03 22:47:50 +02:00
Golmote 0356c58c36 Apply changes from #754 to all plugins so that none of them throw errors in node.
Autolinker, Show invisibles and WPD can now be used with node.
Removed unused minified CSS file.
Also added missing space between attributes during wrapping.
2015-09-03 19:10:27 +02:00
Golmote c8f83b2013 Run gulp task 2015-09-03 18:43:33 +02:00
Golmote 85d8a55634 Markup: Don't allow = to appear in tag name 2015-08-31 20:55:52 +02:00
Golmote 135ee9d1ee C-like: Improved operator regex + add != and !== 2015-08-22 23:39:15 +02:00
Golmote aa757f6c5f C-like: add word boundary before class-name prefixes 2015-08-21 19:05:38 +02:00
Golmote ed9f2b2179 Move removal of initial line feed to a plugin 2015-08-17 08:47:32 +02:00
Golmote fd549959cd Fix complete hook behaviour + run gulp task 2015-08-13 08:33:48 +02:00
Fernando San Julián 1c630b1d4e complete hook added 2015-08-09 00:05:14 +02:00
Golmote 5f133c800f Fixed prism-core and prism-file-highlight to prevent errors in IE8.
Used local variable _self instead of overwriting self.
Closes #468.
2015-07-16 21:09:40 +02:00
Golmote d4194c93cf C-like: use look-ahead instead of inside to match functions 2015-07-11 18:56:55 +02:00
Golmote b6535ddba4 C-like: removed unused 'ignore' pattern. 2015-07-10 08:07:05 +02:00
Golmote 15760e1805 C-like and CSS: Fixes for \r\n 2015-07-08 20:23:32 +02:00
Golmote f2e2718f24 CSS: Selector regexp should not include last spaces before brace 2015-07-08 19:39:35 +02:00
Golmote 901812c1f0 CSS: Improved url and string regexps + handle \r 2015-07-08 19:35:57 +02:00
Golmote e25408898e CSS: Improve atrules 2015-07-08 19:32:10 +02:00
Golmote cd0273ee23 CSS: Highlight parentheses as punctuation 2015-07-08 19:26:35 +02:00
Golmote c19a238bd0 Markup: doctype and prolog can be multi-line. 2015-07-08 19:18:50 +02:00
Golmote 1ebcb8e65d Markup: highlight single quotes in attr-value as punctuation 2015-07-08 19:17:36 +02:00
Golmote 8be7815bfe Run gulp task 2015-07-01 18:50:02 +02:00
Golmote 670d5afe75 Regression fix: do not allow multi-line strings in C-like (unless properly escaped) 2015-06-28 02:33:28 +02:00
Golmote 8030db914a File Highlight: allow to specify the language (takes precedence over extension guess) + Set language on parent even if unknown. Fix #607 2015-06-25 08:00:14 +02:00
Golmote a7064dd4cc Moved up JS strings before template strings as they are far more common 2015-06-20 20:07:37 +02:00
Golmote 476cbf4262 Improved regex performance of C-like strings and JS regexps 2015-06-20 20:06:39 +02:00
Jannik Zschiesche a8aa05886c Implemented support for octal and binary numbers in javascript
They are supported from ES6+
2015-06-14 19:13:35 +02:00
Golmote 04f72b1495 ES6: Template strings + interpolation 2015-06-14 18:26:16 +02:00
Golmote 1453aac5a1 Run gulp task 2015-06-14 17:53:53 +02:00
Golmote 75452ba11b Markup: optimized tag's regexp so that it stops crashing on large unclosed tags 2015-06-12 21:35:06 +02:00
Golmote 52fd55ee6a Relax markup grammar to allow non-ASCII chars in tag names and attributes. Fix #585 2015-06-12 20:20:41 +02:00
Golmote 2781c8b9ca Allow empty single-like comments. Fix #564 2015-04-10 21:36:06 +02:00
Golmote 0eaea0ba1d Run gulp task 2015-03-20 23:48:56 +01:00
Golmote b1fd5bdcee Removed unused global flag in all grammars 2015-03-10 08:27:53 +01:00
Golmote a1ebf7585e Fix style attribute highlighting 2015-02-25 19:58:27 +01:00
Ewald Grusk 1eb495946e Make use of method `_.util.type`. 2015-02-18 21:52:53 +01:00
Golmote b794724cd8 CSS: Move string above property to prevent incorrect highlighting of property-like substrings 2015-01-21 19:07:43 +01:00
Golmote a12fbbdd91 CSS: Don't highlight multi-line urls that are not enclosed between quotes. 2015-01-21 19:06:05 +01:00
Golmote e4a13e5ccf Allow multi-line url in CSS 2015-01-20 22:43:54 +01:00
Daniel Flint c711660aee Deep clone arrays 2015-01-15 09:00:47 +11:00
Golmote 6d89be2aa1 Merge branch 'gh-pages' of https://github.com/LeaVerou/prism 2015-01-11 23:23:12 +01:00
Golmote 703d47e6c0 Simplified regexp for trailing line feeds 2015-01-11 23:18:41 +01:00
Golmote 535266a407 Merge pull request #417 from Golmote/prism-multiline-strings
Add multiline strings support to C-like. Fixes #66
2015-01-11 20:47:48 +01:00
Golmote 07562bd5b8 Merge branch 'master' into prism-multiline-strings
Conflicts:
	components/prism-clike.min.js
2015-01-11 20:42:46 +01:00
Golmote 4d2cdad3c6 Merge branch 'master' into prism-css
Conflicts:
	components/prism-css.min.js
2015-01-11 20:34:58 +01:00
Golmote c8e3c2d71c Run gulp 2015-01-09 08:11:48 +01:00
Golmote 36999ddf3e Handle trailing \r\n and \r 2015-01-08 19:51:55 +01:00
Golmote 45815098b8 Allow multiline strings in CSS
Fixes #457
2015-01-08 09:03:52 +01:00
Golmote 2d5089edf5 Remove leading line break
Fixes #455
2015-01-08 08:55:24 +01:00
Golmote 95995e90b8 Run gulp tasks 2015-01-03 11:20:39 +01:00
Golmote 91bb0bb18f Run gulp 2014-12-20 19:37:26 +01:00
Golmote 3aeecb5a83 Add multiline strings support to C-like 2014-12-10 23:21:22 +01:00
Andreas Rohner e2e36855be Revert invalid move of the language-css alias
One of the language-css aliases, which was moved inwards by the previous
patch was actually in the right place. This patch reverts the change to
correct the newly introduced error of the previous patch.
2014-11-15 19:56:20 +01:00
Andreas Rohner 3154f9b98d Move invalid alias declarations, which cause HTML highlighting to fail
The alias declarations in prism-javascript.js and prism-css.js are in
the wrong place and must be moved inside of the pattern object.
Otherwise they get injected into the markup grammar. The execution
fails, because the alias is a string and not a RegExp.
2014-11-15 19:26:12 +01:00
Lea Verou 17d9aa8acb insertBefore() with only two arguments appends (similar to how DOM insertBefore() behaves) 2014-11-14 20:30:10 -05:00
Lea Verou 23edcc8c2d Added language-xxx aliases in nested language refs to ease styling 2014-11-14 20:10:05 -05:00
Lea Verou 436a7bd6b9 Make insertBefore() update pointers to the object from other language definitions.
Use case/Example: In dabblet, code-highlight.js adds some extra tokens to CSS. But CSS also extends markup to highlight CSS in style elements/attributes and that happens *before* the extra CSS tokens were added. However, because references were not updated, CSS highlighted in markup was using the original CSS definition, without the added tokens. I’m surprised we haven’t caught this earlier, I’d expect it to affect many advanced uses of Prism.
2014-11-14 19:43:50 -05:00
Lea Verou 4b9e11c631 CSS highlighting in HTML style attribute 2014-11-14 19:19:31 -05:00
Andreas Rohner 08037e5b41 Fix for DFS bug with new pattern array feature
This patch implements support for the new pattern array feature in the
Prism.languages.DFS function and fixes a bug in the autolinker plugin.

It adds an optional parameter to the callback of Prism.languages.DFS,
which contains the type of the current object as oposed to the key in
the parent. In most cases both key and type are exactly the same. Only
if the parent is an array the key will contain the index number and the
type will contain the attribute name of the array in the parent object.
The key can be used to replace the object in the parent and the type can
be used to provide the necessary context.
2014-09-05 12:42:48 +02:00
Andreas Rohner 3309890f9f Add option to define aliases for tokens
This patch adds an option called `alias`, which allows the
definition of additional CSS classes for token names. This can be
useful, to combine the styling of a well known token, which is already
supported by most of the themes, with a semantically correct token name.
The option can be set to a string literal or an array of string
literals. In the following example the token name `latex-equation` is
not supported by any theme, but it will be highlighted the same as a
string.

'latex-equation': {
	pattern: /\$(\\?.)*?\$/g,
	alias: 'string'
}
2014-08-25 23:50:02 +02:00
Andreas Rohner b1cc49d887 Update minified and auto generated files 2014-08-23 20:02:02 +02:00
Andreas Rohner e348e602f6 Add auto generated files 2014-08-12 12:11:31 +02:00
Andreas Rohner 89bddb8454 Add automatically generated files 2014-08-12 11:27:26 +02:00
Andreas Rohner fef8cd498f Allow multiple tokens to be mapped to the same CSS class
In most languages there are different ways of declaring the same
constructs, but with the current implementation of Prism it is only
possible to define one pattern for a particular token type. This is not
a problem, as long as it is possible to match everything with one regex.
But sometimes it isn't easily possible to do that, especially if things
like `lookbehind` or `inside` are needed for one part but not for the
other. This patch splits the token type into two parts, whereby the
second part is optional: {token type}#{description}

For example there is a minor bug in the current definition of the
`clike` language, that could be solved with this patch:

The character immediately in front of a single line comment is
highlighted as a comment as well.

something// something

This is because both definitions for single and multiline comments have
to be matched with a single regex and the `lookbehind` parameter can
only be applied to the first captured string.

With this patch one could split the two definitions up and use
`lookbehind` for both, thereby eliminating the bug.

'comment': {
	pattern: /(^|[^\\])\/\*[\w\W]*?\*\//g,
	lookbehind: true
},
'comment#single-line': {
	pattern: /(^|[^\\:])\/\/.*?(\r?\n|$)/g,
	lookbehind: true
},
2014-08-10 20:21:53 +02:00
Ben Briggs 4247baecba Fix conflicts. 2014-07-28 16:54:50 +01:00
Jannik Zschiesche 502ed6c1e0 Don't set the `self` variable with `var`
Firefox directly shadows the global variable `self` if it is present (= in a worker). So we need to set `self` without `var self` but directly.
2014-07-23 10:49:30 +02:00
Jannik Zschiesche eb1cd1c952 Fix workers
The issue is that in workers `window` is undefined.
Therefore, in the first line, `self` will be set to `{}`.

This will destroy the check for workers later on:
```js
if (!self.document) {
	if (!self.addEventListener) {
		// in Node.js
		return self.Prism;
	}
 	// In worker
 	// ...
}
```

because `self.addEventListener` will then be undefined (due to `self = {}`).

The fix is to make the check for the environment more clever:

1. check for the browser: `(typeof window !== 'undefined')`
2. check for a worker: `(typeof WorkerGlobalScope !== 'undefined' && self instanceof WorkerGlobalScope)` (from http://stackoverflow.com/questions/7931182/reliably-detect-if-the-script-is-executing-in-a-web-worker)
3. assume we are in node
2014-07-23 09:55:16 +02:00
Lea Verou af7a42a414 Updated minified versions 2014-07-10 19:25:02 +03:00
Jannik Zschiesche d27b693f85 Updated keywords in JavaScript definition
* Sort keywords alphabetically (to ease maintenance)
* Added all missing keywords
* Added ECMAScript 5 keywords
* Added true/false/null as explicit keywords

Source: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Reserved_Words

Fixes #270
2014-06-01 17:18:03 +02:00
Ben Briggs 7cfd29a9bf Rebuild minified files. 2014-05-26 11:20:55 +01:00
Lea Verou 4a4723073b Minified files 2014-05-24 16:14:20 -04:00
Lea Verou 34365bfc74 Minified files 2014-05-24 15:57:07 -04:00
Lea Verou 603a8a020f Added twitter link to footer, minified some files 2014-05-24 15:26:54 -04:00
Lea Verou d44312b66f Converted the CSS, SCSS and JS grammars according to #258 2014-05-24 14:25:49 -04:00
Lea Verou eb65c68b25 Generated minified versions & prism.js after merging #258 2014-05-24 14:13:36 -04:00
Lea Verou 6256168464 Reversed change in Core 2014-05-22 17:36:51 -04:00
Lea Verou 0bf2a8e56f Updated minified files 2014-05-22 17:28:57 -04:00
Lea Verou 74a37abf84 Merge branch 'gh-pages' of https://github.com/LeaVerou/prism into gh-pages 2014-04-21 13:36:40 +03:00
Lea Verou 3647149142 Updated minified files 2014-04-21 13:36:32 +03:00
Lea Verou 1758634b82 Merge pull request #179 from geraintluff/gh-pages
Add Node.js support
2014-04-21 06:29:13 -04:00
Lea Verou 6e3e5bab30 Added get/set to JS keywords 2014-02-27 20:25:09 +02:00
Geraint Luff 8a7157be3d Add Node.js support 2013-11-12 22:33:44 +00:00
Lea Verou 1b1f217e55 Removed forgotten console.log() 2013-07-01 18:54:23 +03:00
George Kats c713419696 Change condition for highlight plugin. 2013-06-25 00:04:30 +03:00
George Kats 2c1d8363bd Fix highlight plugin for worker. 2013-06-24 23:58:39 +03:00
Lea Verou b955edd429 Allowed numbers in properties (for CSS variables) 2013-06-14 14:04:51 +02:00
Lea Verou 1d899d7db6 Fixed parsing for entities and <> chars 2013-06-14 11:46:34 +02:00
Lea Verou dceab61d73 Tweaked CSS parsing for better LESS highlighting, added relevant example 2013-06-14 11:33:07 +02:00
Rob Brackett 2b2043488e Merge branch 'gh-pages' into bug-109-zero-length-lookbehind. Manually adjusted whitespace collision in prism.js.
Conflicts:
	prism.js
2013-06-01 22:01:58 -07:00
Lea Verou 7085663779 Merge pull request #59 from CIAvash/before_insert_hook
Add a hook before setting the highlighted code to <code>'s innerHTML
2013-06-01 19:10:11 -07:00
Miles Johnson 4c9ad346ea Merge branch 'gh-pages' into css 2013-05-26 20:08:55 -07:00
Rob Brackett 8f746360e2 Use separate vars to track whether lookbehind is being used and the length of the lookbehind. Fixes #109. 2013-05-23 11:53:04 -07:00
Siavash Askari Nasr 29b28801f4 Added 'before-insert' hook. After when code is highlighted and before being inserted to document. 2013-05-21 16:01:30 +04:30
Miles Johnson c1f60b0e56 Minor changes 2013-05-18 21:47:01 -07:00
Miles Johnson a6b53a2665 Updated selector patterns 2013-05-18 18:01:16 -07:00
Lea Verou bba5bfc2de Added File Highlight plugin 2013-05-19 03:20:58 +03:00
Lea Verou 08143d9f7f Merge branch 'regex-number' of https://github.com/mseeboeck/prism into mseeboeck-regex-number
Conflicts:
	components/prism-clike.js
	components/prism-clike.min.js
	prism.js
2013-05-19 00:12:57 +03:00
Miles Johnson 1318f799dd Improved selector patterns 2013-05-17 17:03:49 -07:00
Miles Johnson 3129ed87c6 More example testing 2013-05-17 16:57:08 -07:00
Miles Johnson b1003de31b More improvements and testing 2013-05-16 12:19:58 -07:00
Miles Johnson 9bc70c5eab Moved CSS rules to an extras file 2013-05-15 10:44:42 -07:00
Miles Johnson 15c80635f7 Added class-name to clike
Added PHP support
2013-05-14 12:03:58 -07:00
Miles Johnson f9abda2862 Added pseudo, hexcode, number and function matchers 2013-05-14 11:34:53 -07:00
Lea Verou 801aab58cf Added parent access to wrap hook 2013-05-11 04:37:44 +03:00
Lea Verou c3a6991399 Added language id to wrap hook 2013-05-09 21:01:17 +03:00
Lea Verou 4d3bbe170d Merged changes, ran CodeKit 2013-04-30 01:26:02 +03:00
Rose 92bede234b Reorganized code 2013-01-27 19:47:43 -08:00
Rose 2fd39c7eb0 Add coffeescript syntax hilighters 2013-01-27 10:19:04 -08:00
Lea Verou 358fbbd686 Replaced iteration with Array#map 2013-01-27 03:50:38 +02:00
mseeboeck ad010eac22 Changed regex Prism.languages.clike.number
Changes:
* Variable names matching /[a-f]+/ are no longer treated as numbers.
* Added support for upper case and scientific notation.
* Also changed corresponding files in /components.

Minor issues:
* No support for type suffixes (e.g. 300f for float).
* Leading decimal point is marked up as 'punctuation', instead as part of
* the number (e.g. .1; 0.1 is matched correctly).
2012-12-18 00:18:43 +01:00
mseeboeck 71b4dad0e5 Rescued 220 whitespace characters from certain death :) 2012-12-17 22:48:00 +01:00
mseeboeck f678c58fd2 Changed regex Prism.languages.javascript.number
Regex treated var names matching /[a-f]+/ as numbers.
Added support for scientific notation (e.g. 1.23e-4).
Added support for upper case notation (e.g. 0xBEEF).

Small issues remaining:
* Leading decimal point is marked up as 'punctuation', instead as part of the
number (e.g. .1; 0.1 is matched correctly). Maybe a problem with the
tokenizer?
* Maybe Prism.languages.clike.number should be changed as well?
2012-12-17 07:02:38 +01:00
Maxime Thirouin 79c5c9068e Fix Java examples which are not working
With the commit 5c7827d0e9, you remove the prism-java component from the prism.js, so the Java examples here http://prismjs.com/examples.html are not working
2012-11-15 10:40:46 +01:00
Lea Verou 40ce3954a8 Fixed bug with self-closing tags 2012-11-13 16:30:49 +02:00
Lea Verou 577a589014 Fixed HTML highlighting bugs 2012-11-12 05:37:43 +02:00
Lea Verou 1cdfcb840b Fixed #37 2012-11-11 04:25:56 +02:00
Lea Verou 1b40db975c Made Java & JavaScript inherit from a generic C-style language definition; Added methods for language definition inheritance; Added simple dependency management in downloader 2012-11-10 00:23:33 +02:00
Lea Verou 637322b2ac Um...changes. I don’t even remember *blush* 2012-11-09 16:42:37 +02:00
Lea Verou 5c7827d0e9 Um...changes. I don’t even remember *blush* 2012-11-09 16:32:33 +02:00
Lea Verou 9ceed06f59 merge branch 'gh-pages' of https://github.com/LeaVerou/prism into gh-pages 2012-09-13 20:08:31 +03:00
Lea Verou 54fdc1f4b9 Removed pointless trim() 2012-09-13 20:06:11 +03:00
Ronny Orbach df63c44f03 Require word boundaries around js number regexp.
Ammending pull request #23
2012-08-10 15:13:33 +03:00
Lea Verou fe54e7756d Merge pull request #23 from RonnyO/gh-pages
Improved Number & Operator detection in JavaScript
2012-08-09 11:01:44 -07:00
sebh 201077e94c Added Java syntax highlighter 2012-08-03 17:25:09 +02:00
Ronny Orbach e1e67d0519 Improved operator detection in JS
Operators Added: % ~ ^ :
2012-08-03 14:20:20 +03:00
Ronny Orbach 3d1896c8ee Improve Number detection in JavaScript
Now catches NaN, Infinity, .5, minus sign as part of the number, scientific notation, hex notation and more
2012-08-03 14:06:59 +03:00
Lea Verou ddd1eb89f5 Applied #15 to prism-core.js 2012-08-01 12:02:46 +12:00
Lea Verou e1cd33df9c Made the page a bit more IE friendly, added a first version of the IE8 plugin (WIP) 2012-08-01 02:47:23 +12:00
Lea Verou c75bbc2401 Fixed bug with classnames 2012-07-31 19:08:31 +12:00
Lea Verou ec8fb796bb Added helper method Prism.languages.DFS 2012-07-31 17:47:56 +12:00
Lea Verou e95a85c02e Merged the comment and line-comment tokens 2012-07-31 16:22:11 +12:00
Lea Verou c8795ed1c2 Improved regex matching, docs updates 2012-07-31 12:25:32 +12:00
Lea Verou ea89ab60a2 Minor improvements to Markup 2012-07-29 01:35:13 -07:00
Lea Verou 9eeeb7c66f Moved inline CSS & JS to their language definitions 2012-07-29 01:03:05 -07:00
Lea Verou 54e2eeab09 Added (and documented) Prism.languages.insertBefore 2012-07-29 00:26:50 -07:00
Lea Verou 03548f7eb9 Made url() highlighting more robust 2012-07-27 04:25:21 -07:00
Lea Verou 27ffa5b04a Fixed serious highlighting bug, reduced known failures from 3 to 1 2012-07-27 03:24:15 -07:00
Lea Verou 4da6cfcda4 Removed useless code 2012-07-27 00:08:10 -07:00
Lea Verou 9f82e1c952 Added more examples, added highlighting for entities, URLs and CSS strings 2012-07-26 19:13:47 -07:00
Lea Verou 6763cd53f0 Fixed bug where block code wasn’t styled properly 2012-07-26 18:48:34 -07:00
Lea Verou 9ea52e2a08 Removed IE8 support 2012-07-26 18:41:49 -07:00
Lea Verou cfaf681db9 Removed the need for .prism 2012-07-26 18:17:55 -07:00
Lea Verou 9ea808ea66 Added url token in CSS 2012-07-23 20:20:40 -07:00
Lea Verou 1b5ab23a2a Added setting to turn automatic highlighting off and to set a default language 2012-07-23 19:32:27 -07:00
Lea Verou ae4b48123c Fixed entity tooltip 2012-07-23 19:16:50 -07:00
Lea Verou bd4e8d158b ALL THE THINGS! Most notably: Simple templating, API changes, show invisibles plugin, download (build) page 2012-07-23 18:54:30 -07:00
Lea Verou a4b9b918ae Added minified versions 2012-07-18 15:57:08 -07:00
Lea Verou 351b011f85 Style && docs tweaks — more coming soon 2012-07-16 14:49:29 -07:00
Lea Verou f2339ea1bb Added line highlight plugin 2012-07-15 22:36:05 -07:00
Lea Verou 2c47354774 Fixed regexes further, documented lookbehind feature 2012-07-15 16:35:06 -06:00
Lea Verou 6f1dc1849f Fixed regex & single line comment conflicts 2012-07-15 14:04:25 -04:00
Lea Verou 2d530f0a7d Experimental highlighting of tab characters in JS code. 2012-07-13 15:20:37 -04:00
Lea Verou bdb8fae844 Added hooks system, moved entity tooltips to the Markup language, as a plugin 2012-07-13 15:11:03 -04:00
Lea Verou 764fe40817 Made Prism.wrap() more extensible (See #8) 2012-07-13 02:42:17 +03:00
Lea Verou a97d26b2b8 Added highlighting for CDATA sections 2012-07-13 02:31:49 +03:00
Lea Verou 2d57ff2aad Added highlighting for doctypes & XML prolog, removed the iframed examples and replaced them with XHR 2012-07-12 19:07:05 +03:00
Lea Verou 6dc08f3d61 Renamed html to markup, since it’s also about XML 2012-07-12 17:18:48 +03:00
Lea Verou 6e9c4e1b65 Fixed horrible bug, added highlighting for XML namespaces 2012-07-12 17:12:58 +03:00
Lea Verou cdee2b54f7 IE8 support 2012-07-11 22:01:44 +03:00
Lea Verou 8ecdd7c4ee Removed switch for automatic highlighting 2012-07-11 14:24:00 +03:00
Lea Verou 27e5464c5b Safeguarded against Object.prototype additions 2012-07-11 03:14:55 +03:00
Lea Verou 4552f5c7a1 First commit 2012-07-10 22:48:14 +03:00