|
5aeb9044
|
2016-04-19T01:12:42
|
|
Merge pull request #931 from clarle/node-docs
Add Node usage documentation to Basic Usage
|
|
be9a7858
|
2016-04-09T20:10:55
|
|
Add Node usage documentation to Basic Usage
|
|
ea507962
|
2016-04-07T01:20:30
|
|
Updated minified JS file
|
|
8a9f30fa
|
2016-04-01T02:48:10
|
|
Minified prism-bro.js file to prism-bro.min.js
|
|
9e8d4f99
|
2016-04-01T02:08:35
|
|
More improvements to Bro
|
|
5bdb22e6
|
2016-04-07T01:18:46
|
|
Corrected indentation issue
|
|
b25a7515
|
2016-03-31T03:34:23
|
|
Added Bro support to Prism
|
|
b8275198
|
2016-04-07T23:50:03
|
|
Fixed whitespaces, reordered tokens, used Gulp to min JS
|
|
22bf9c55
|
2016-04-07T01:12:38
|
|
Fixed issues pointed out in previous pull request
|
|
ff93a9cc
|
2016-04-01T02:56:29
|
|
Better HTML example
|
|
ccd61b61
|
2016-04-07T12:22:27
|
|
Merge pull request #924 from zeitgeist87/drupal-logo
Add Drupal to the list of websites that use Prism
|
|
d2f915d8
|
2016-04-07T10:29:09
|
|
Merge pull request #928 from flowlo/patch-1
Ignore tests directory in bower.json
|
|
a6d2d0f4
|
2016-04-06T03:56:45
|
|
Ignore tests directory in bower.json
|
|
648aec06
|
2016-03-31T19:27:24
|
|
Merge pull request #922 from chucknelson/add-missing-keywords-for-sas
Add missing keywords for SAS.
|
|
1b905b9e
|
2016-03-31T11:24:29
|
|
Update PROC step/keyword regex to be more restrictive.
|
|
b88c68a0
|
2016-03-31T13:07:09
|
|
Add Drupal to the list of websites that use Prism
|
|
85ef5179
|
2016-03-30T10:25:36
|
|
Add missing keywords for SAS.
Two changes:
(1) PROC keyword now also includes its associated name (e.g., PROC TABULATE, PROC SQL).
(2) QUIT now included, as it is used to close/complete various procedures.
|
|
39630dd5
|
2016-03-25T19:14:11
|
|
Merge pull request #917 from ervaude/ervaude-third-party-tutorials
Clean up Third-party tutorials section
|
|
415092b1
|
2016-03-21T16:36:57
|
|
Clean up Third-party tutorials section
Resolves #809
Add a new third party tutorial. Remove dead links and correct outdated URLs.
|
|
bd479f1d
|
2016-03-08T21:58:27
|
|
Merge pull request #906 from davewasmer/gradient-syntax
Update linear-gradient syntax from `left` to `to right`
|
|
cd234dcd
|
2016-03-08T19:26:52
|
|
update linear-gradient syntax from `left` to `to right`
|
|
49cf8991
|
2016-03-08T15:03:59
|
|
Fix minor bug with new greedy-feature
This fixes a minor bug that causes invalid highlighting in some
edge cases, where two greedy patterns overlap each other.
|
|
5978d4a0
|
2016-03-08T13:57:56
|
|
Merge pull request #905 from desertjim/gh-pages
Support For Annotations in Java
|
|
367ace62
|
2016-03-05T17:41:56
|
|
1)Adding annotation token for Java
2)Aliasing java annotation to punctuation
3)Aliasing grovy annotation to punctuation
4)Adding in sample code
|
|
9c1a9703
|
2016-02-26T14:49:06
|
|
Merge pull request #904 from zeitgeist87/order-components
Add after-property to allow ordering of plugins
|
|
224b7a15
|
2016-02-26T15:29:36
|
|
Add after-property to allow ordering of plugins
Some plugins do not depend on each other and can be used
independently, but if they are used at the same time, they have to
be executed in a specific order.
The "after"-property in components.js, allows the download page to
concatenate the plugins in the right order, without enforcing a
hard dependency.
|
|
8cf72b33
|
2016-02-26T10:20:41
|
|
Remove the force-to-the-top hack for normalize-whitespace
|
|
39e9e8d7
|
2016-02-25T23:55:16
|
|
Put Unescaped Markup above normalize whitespace in a futile attempt to get them to execute in the right order :/
|
|
4b47a992
|
2016-02-25T23:51:01
|
|
Added Unescaped Markup to the list of components, since no bugs were found.
We can always add features later.
|
|
954c90a2
|
2016-02-20T21:01:45
|
|
Merge pull request #779 from zeitgeist87/gh-pages
Partial solution for the "Comment-like substrings"-problem
|
|
16f6f39f
|
2016-02-19T23:11:10
|
|
Remove direction-property from themes
Remove direction-property from all themes, because it is
incompatible with the EPUB-format. This was reported in issue
#902.
|
|
c88036ca
|
2016-02-19T22:27:22
|
|
Add tests for new greedy-pattern feature and fix bug in Kotlin
This patch adds tests for the new greedy-pattern feature and fixes
a small bug in the Kotlin language, that resulted from that.
It also cleans up some of the comments and refactors a few lines
in the tokenloop.
|
|
24a09361
|
2016-02-19T13:38:54
|
|
Fix double HTML-encoding bug in Groovy language
|
|
90432f96
|
2016-02-18T01:22:40
|
|
Add comments to better document the greedy-pattern feature
|
|
2705c509
|
2015-09-24T19:36:10
|
|
Partial solution for the "Comment-like substrings"-problem
This patch introduces a new attribute called `greedy`. The
attribute is a simple boolean flag. If there is no match
for a greedy pattern it can concatenate the next two tokens
into a single string and try to match on this string again.
If a match is found on the second attempt, then the old tokens are
deleted and replaced by the new match.
This solves the "Comment-like substrings"-problem for exactly one
comment at very little cost. With this patch the following code is
highlighted correctly:
"foo /* bar */ baz"; "foo // bar";
/lala"test"sdf/;
This approach fails if there are more than one comments inside the
string:
"foo /* bar */ baz /* bar */ baz";
Signed-off-by: Andreas Rohner <andreas.rohner@gmx.net>
|
|
54400fba
|
2016-02-17T15:26:01
|
|
Add property 'aliasTitles' to components.js
This is necessary, because a language that has a lot of aliases
like markup (HTML, SVG, XML, MathML), is only added to the
languageMap once as "Markup". So any plugin that depends on the
languageMap is limited by that.
This patch allows the definition of additional titles for
languages, depending on the alias that is used.
|
|
e29cbe1c
|
2016-02-15T15:47:48
|
|
[unescaped markup] Fix small issues @zeitgeist87 pointed out
|
|
ad30c323
|
2016-02-14T21:25:57
|
|
[unescaped markup] Fixed bug with escaped </script>
|
|
07d77e53
|
2016-02-14T21:08:34
|
|
Added unescaped markup plugin (hidden)
|
|
af8da8ec
|
2016-02-14T21:08:14
|
|
Implemented @zeitgeist87’s suggestion in #890 re: env.elements
|
|
49a3324b
|
2016-02-13T19:32:40
|
|
Merge pull request #890 from PrismJS/LeaVerou-patch-1
Add before-highlightall hook
|
|
eb2a8d86
|
2016-02-13T15:29:46
|
|
Changed weight in the header, as we’re now 2KB minified & gzipped. Also way overdue :)
|
|
fc3195b6
|
2016-02-13T15:26:22
|
|
Changed the text in the header. Way overdue, as Prism’s popularity has way surpassed that of Dabblet
|
|
70a8602f
|
2016-02-13T15:21:28
|
|
Add before-highlightall hook
Needed for unescaped markup plugin, as discussed in #887.
Alternatively, we could reinstate @zeitgeist87’s PR about making the selector a config option.
Thoughts?
|
|
c1e75bde
|
2016-02-12T23:23:25
|
|
Merge pull request #889 from zeitgeist87/FixRegexp
Fix catastrophic backtracking regex issues
|
|
ab65be27
|
2016-02-12T21:32:19
|
|
Fix catastrophic backtracking regex issues
|
|
99c30e4e
|
2016-02-12T11:03:08
|
|
Add missing prism.js to the documentation of normalize-whitespace
|
|
f1c71994
|
2016-02-12T10:53:38
|
|
Cleanup normalize-whitespace and improve keep-markup integration
This patch removes the misleading references to the parse-settings
plugin from the normalize-whitespace documentation and adds a
description for all supported operations.
The keep-markup plugin sets the property Prism.plugins.KeepMarkup
to allow the normalize-whitespace plugin to optimize its
operation.
Furthermore, the normalize-whitespace plugin makes sure, that it
is the first plugin to run on a particular code block.
|
|
e4c79228
|
2016-02-10T12:26:04
|
|
Merge pull request #884 from zeitgeist87/NormalizeWSKeepMarkupSupport
Preserve Markup in Normalize-Whitespace plugin
|
|
6880b3c1
|
2016-02-10T11:08:44
|
|
Preserve Markup in Normalize-Whitespace plugin
Since the Normalize-Whitespace plugin is only concerned with
whitespace, it is easy to preserve the markup for other plugins
like keep-markup.
|
|
eb68eb83
|
2016-02-07T18:53:04
|
|
Update CHANGELOG and run gulp
|
|
8f79f3b3
|
2016-02-06T16:36:30
|
|
Merge pull request #880 from montogeek/gh-pages
Fix Keep Markup plugin incorrect highlighting
|
|
24841ef3
|
2016-02-06T16:21:04
|
|
Removed firstWhiteSpaces code
|
|
ef533229
|
2016-02-06T15:06:29
|
|
Merge pull request #847 from zeitgeist87/WhitespaceNormalizer
Whitespace normalizer plugin
|
|
38b7b3b6
|
2016-02-06T15:49:01
|
|
Add support for automatic line breaks
This patch adds support for automatic line breaks after a
specific number of characters. The default is 80 characters, but
it can be set to any number.
|
|
704ba4f9
|
2016-02-06T00:02:15
|
|
Fix Keep Markup plugin incorrect highlighting
|
|
97b0eb5a
|
2016-02-03T15:51:12
|
|
Hotfix Release 1.4.1
|
|
6c4cf558
|
2016-02-03T15:45:54
|
|
Merge pull request #877 from zeitgeist87/DFS-fix
Fix DFS bug
|
|
b86c727a
|
2016-02-03T15:25:26
|
|
Fix DFS bug
The DFS function uses an object as a key into another object. This
doesn't work, because the key gets stringified to "[object
Object]" and is therefore useless.
|
|
4562b18d
|
2016-02-03T14:06:01
|
|
Release 1.4.0
|
|
b9ded42e
|
2016-02-03T14:03:39
|
|
Fix Changelog
|
|
1eee43a3
|
2016-02-03T13:59:17
|
|
Update Changelog
|
|
9b596d38
|
2016-02-03T13:00:59
|
|
Merge pull request #876 from zeitgeist87/space-invisible
Add support for the space character for the show-invisibles plugin
|
|
05442d3e
|
2016-02-01T14:16:13
|
|
Add support for the space character for the show-invisibles plugin
This patch adds a bit of position magic, so that the invisibles
are displayed on top of the original character. This allows for
the inclusion of the space character.
|
|
5b9bf72d
|
2016-02-01T14:06:51
|
|
Merge pull request #874 from mAAdhaTTah/autoloader-compat
Ensure show-invisibles compat with autoloader
|
|
c3cfb1fb
|
2016-01-30T14:46:38
|
|
Ensure show-invisibles compat with autoloader
When using the autoloader, the language isn't loaded
at the time the show-invisibles plugin attaches its
extra tokens. This defers attaching the extra tokens
to just before highlighting, so we ensure we're able
to attach to the language grammar.
|
|
bcdd272b
|
2016-01-28T17:54:07
|
|
Merge pull request #872 from zeitgeist87/solarized
Fix Solarized Light theme
|
|
a16c62a1
|
2016-01-28T15:05:13
|
|
Fix Solarized Light theme
The official color palette is included as a CSS comment and every
color used is named with a comment.
|
|
0e87ff0a
|
2016-01-27T11:55:16
|
|
Add solarized light theme to the list of themes and update
auto-generated files generated by gulp.
|
|
661fa263
|
2016-01-27T11:51:53
|
|
Merge pull request #855 from hectormatos2011/gh-pages
Solarized Light Theme for PrismJS
|
|
e6328289
|
2016-01-26T23:19:18
|
|
Merge pull request #870 from zeitgeist87/use-currentscript
Use document.currentScript
|
|
7fab7a2d
|
2016-01-26T23:16:06
|
|
Reverse merge of last PR and remove the 'data-selector' attribute.
|
|
fa987435
|
2016-01-26T23:10:45
|
|
Use document.currentScript instead of
document.getElementsByTagName()
|
|
f78b703e
|
2016-01-26T18:33:05
|
|
Merge pull request #868 from zeitgeist87/element-selector
Allow users to use their own element selector
|
|
77c6ea17
|
2016-01-26T02:33:20
|
|
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.
|
|
6ba9183f
|
2016-01-24T15:57:48
|
|
Merge pull request #865 from zeitgeist87/fix-coy-theme
Fix coy theme shadows
|
|
3c7b92e6
|
2016-01-24T04:35:26
|
|
Merge pull request #864 from jordandanielewski/selection-prefix
Add prefix for Firefox selection to Twilight theme
|
|
58d2337d
|
2016-01-24T04:01:16
|
|
Fix coy theme shadows
This patch removes max-height from the pre tag in the coy theme,
because this height limitation is inconsistent with the other
themes.
The above change causes a bug in the shadows of the coy theme.
Adding max-height: 13em to the ::before and ::after selector fixes
the shadow bug.
|
|
6d547175
|
2016-01-24T02:46:45
|
|
Add prefix for Firefox selection and move prefixed rule first
|
|
7501ceb8
|
2016-01-22T17:50:47
|
|
Merge pull request #863 from jordandanielewski/no-code-background
No background for <code> in <pre>
|
|
36ddfb5a
|
2016-01-22T16:41:25
|
|
Don't add new rule
|
|
b184c269
|
2016-01-22T17:38:38
|
|
Merge pull request #830 from malcomio/sasslink
link scss to webplatform wiki - fixes #829
|
|
8c310bcc
|
2016-01-22T15:00:59
|
|
No background for <code> in <pre>
|
|
fe318d83
|
2016-01-21T11:59:25
|
|
Add @media type for the max-height property in the coy theme, so
that it is disabled for printouts.
|
|
6a5c740e
|
2016-01-18T18:56:48
|
|
Merge pull request #857 from pra85/patch-1
Fixing to initial copyright year
|
|
69cbf7a2
|
2016-01-18T21:53:13
|
|
Fixing to initial copyright year
According to http://www.copyright.gov/circs/circ01.pdf , listing the first year of publication in the copyright is enough
|
|
1eb9a5fb
|
2016-01-17T13:56:32
|
|
Update auto-generated files
|
|
c70ee236
|
2016-01-16T20:53:04
|
|
Merge pull request #1 from hectormatos2011/hectormatos2011-solarizedlightcss
New Theme for PrismJS - Solarized Light
|
|
35ac9921
|
2016-01-16T20:51:30
|
|
Highlight rules suck. I think these work.
This is what happens when an iOS Dev tries his hand at CSS.
|
|
a5c8b676
|
2016-01-16T20:40:13
|
|
Add highlighting rule
|
|
70846ba9
|
2016-01-16T20:35:19
|
|
New Theme for PrismJS - Solarized Light
I quite like the solarized themes - they are pretty accessible and a lot of work was done on created something that is easy on the eyes. I ported Solarized Light for PrismJS. It would be pretty cool if the solarized themes were included with PrismJS! However, after some research, I couldn't quite see any attribution rules so I provided a link to the original creator of the solarized formats in a comment at the top of the css file.
|
|
3ebcb66e
|
2016-01-16T05:38:11
|
|
Merge pull request #854 from valtlait/patch-1
Simplify the “lang” regex
|
|
417f54a1
|
2016-01-16T03:12:00
|
|
Simplify the “lang” regex
Remove an useless (?!\*) part from the lang regex.
|
|
e86ec01f
|
2016-01-07T10:39:37
|
|
Add whitespace-normalizer plugin
This plugin normalizes whitespace in code blocks. It can perform
various operations. The user can configure them through the plugin
object located at Prism.plugins.NormalizeWhitespace.
Prism.plugins.NormalizeWhitespace.setDefaults({
'remove-trailing': true,
'remove-indent': true,
'left-trim': true,
'right-trim': true,
/*'indent': 2,
'remove-initial-line-feed': false,
'tabs-to-spaces': 4,
'spaces-to-tabs': 4*/
});
The plugin can be disabled for certain code blocks, by adding the
class "no-whitespace-normalization" to it.
There is also a HTML-interface using the parse-settings plugin.
|
|
cf7291e7
|
2016-01-05T19:09:28
|
|
Remove default option for JSON language
|
|
dfa52631
|
2016-01-02T14:33:53
|
|
Merge pull request #845 from chriswells0/command-line
Remove the need for an "output" class.
|
|
73b71357
|
2015-12-30T20:15:36
|
|
Merge pull request #846 from d10/fix-links
Fix broken heading links.
|
|
3656a085
|
2015-12-30T13:28:00
|
|
Remove unnecessary check for the existence of the addEventListener
method
All target browsers for Prism support this method now. The check
is therefore obsolete.
|
|
a7f9e620
|
2015-12-30T18:36:44
|
|
Fix broken heading links.
|
|
106c8178
|
2015-12-30T10:32:08
|
|
Merge pull request #370 from CupOfTea696/gh-pages
JSON Language
|