|
cb3f1cbc
|
2014-12-15T23:53:37
|
|
Add Rust language
|
|
46b75132
|
2014-12-09T02:23:25
|
|
Merge pull request #409 from Golmote/gh-pages
Added Handlebars language
|
|
c5044386
|
2014-12-09T08:21:31
|
|
Merge branch 'gh-pages' of https://github.com/LeaVerou/prism
Conflicts:
components.js
|
|
859a5922
|
2014-12-09T02:09:17
|
|
Merge pull request #410 from Golmote/prism-perl
Added perl language
|
|
05129ed8
|
2014-12-09T07:54:52
|
|
Fix delimiters highlighting + highlight numbers and booleans
|
|
7ce45c44
|
2014-12-09T07:43:29
|
|
Add Handlebars to components.js
|
|
f3b78833
|
2014-12-09T07:40:03
|
|
Add perl to components.js
|
|
551f75fc
|
2014-12-08T23:51:39
|
|
Added perl language
|
|
c272a04a
|
2014-12-08T23:04:02
|
|
Added Handlebars language
|
|
e1487236
|
2014-12-05T00:24:19
|
|
Merge pull request #404 from rbmj/gh-pages
Add NASM (Netwide Assembler) language definition.
|
|
531adde3
|
2014-12-02T18:27:31
|
|
Merge pull request #386 from himedlooff/gh-pages
Updates location of prism.css in bower.json.
|
|
4b606263
|
2014-09-12T22:05:59
|
|
Add NASM (Netwide Assembler) language definition.
|
|
4160c577
|
2014-11-15T14:12:09
|
|
Merge pull request #396 from zeitgeist87/gh-pages
Revert invalid move of the language-css alias
|
|
e2e36855
|
2014-11-15T19:56:20
|
|
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.
|
|
56a8a2bc
|
2014-11-15T19:28:43
|
|
Merge pull request #395 from zeitgeist87/gh-pages
Remove invalid alias declarations, which cause HTML highlighting to fail
|
|
3154f9b9
|
2014-11-15T19:09:40
|
|
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.
|
|
17d9aa8a
|
2014-11-14T20:30:10
|
|
insertBefore() with only two arguments appends (similar to how DOM insertBefore() behaves)
|
|
23edcc8c
|
2014-11-14T20:10:05
|
|
Added language-xxx aliases in nested language refs to ease styling
|
|
436a7bd6
|
2014-11-14T19:43:50
|
|
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.
|
|
4b9e11c6
|
2014-11-14T19:19:31
|
|
CSS highlighting in HTML style attribute
|
|
3e9491d3
|
2014-11-06T09:33:46
|
|
Merge pull request #388 from lvgunst/prism-http-case-insensitive
Make HTTP response-status case-insensitive
|
|
ac41a8d2
|
2014-10-27T15:12:59
|
|
Make HTTP response-status case-insensitive
|
|
144adf18
|
2014-10-20T01:03:50
|
|
Merge pull request #387 from bacchus123/gh-pages
Scheme language highlighting
|
|
d5f2653b
|
2014-10-18T23:04:18
|
|
added minified file & removed uncessary objects
|
|
5a6f744f
|
2014-10-18T22:58:13
|
|
whoops added so the 2 in something like log2 won't parse as a number
|
|
9b3218d8
|
2014-10-18T22:15:46
|
|
added single quotes and a punctuation tag for parens
|
|
c60d3876
|
2014-10-18T21:51:06
|
|
added scheme language
|
|
e7318009
|
2014-10-16T17:14:01
|
|
Updates location of prism.css in bower.json.
|
|
506bb22e
|
2014-10-13T16:11:06
|
|
Merge pull request #383 from SassDoc/add-scss-sassdoc
Add SassDoc syntax extension for Sass
|
|
aa09053a
|
2014-10-12T12:49:27
|
|
Add a "Third-party language definitions" section
|
|
837d1d69
|
2014-10-08T04:09:48
|
|
Merge pull request #380 from idleberg/gh-pages
added !makensis command
|
|
6db22842
|
2014-10-08T10:07:39
|
|
added !makensis command
|
|
3d5a1f46
|
2014-10-02T12:59:52
|
|
Merge pull request #377 from nfriedly/patch-1
Adding support for .rb extension
|
|
420aaffc
|
2014-10-02T12:48:29
|
|
Adding fix for #376 to minified js
|
|
51d56f97
|
2014-10-02T12:39:24
|
|
Adding support for .rb extension
Fixes #376
|
|
6a004cbe
|
2014-09-22T15:03:10
|
|
Merge pull request #360 from zeitgeist87/FixAutolinker
Fix for DFS bug with new pattern array feature
|
|
f2984edb
|
2014-09-11T18:40:27
|
|
Added SQL variable support
|
|
13d69762
|
2014-09-11T03:37:35
|
|
SQL improvements: Added TEMP keyword
|
|
94a8fd1b
|
2014-09-10T04:01:25
|
|
SQL improvements: added function token (perhaps should be `aggregate` and aliased to function), improved operators a bit, converted regex groups to non capturing
|
|
08037e5b
|
2014-09-05T11:01:02
|
|
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.
|
|
4f9006ba
|
2014-09-01T05:34:10
|
|
Merge pull request #353 from lgiraudel/colors
Use of existing colors for `deleted` and `inserted` tokens.
|
|
b14b05e2
|
2014-09-01T00:36:03
|
|
Use of existing colors for `deleted` and `inserted` tokens.
|
|
994d57b6
|
2014-09-01T00:03:27
|
|
Merge pull request #352 from lgiraudel/gh-pages
[Git] Fix `deleted` and `inserted` regexp.
|
|
0a37552d
|
2014-08-31T22:30:50
|
|
Update prism-git.js
|
|
e5f83ca8
|
2014-08-31T22:30:10
|
|
Update prism-git.min.js
|
|
a33e35fa
|
2014-08-31T22:04:19
|
|
[Git] Fix `deleted` and `inserted` regexp. See LeaVerou/prism#227.
|
|
84f26a5c
|
2014-08-30T22:10:57
|
|
Merge pull request #351 from FuzzySockets/git-ignore-intellij
Added intellij matcher to gitignore
|
|
fdabf8d3
|
2014-08-30T13:50:31
|
|
Merge pull request #350 from lgiraudel/gh-pages
Adding default colors for `.token.deleted` and `.token.inserted`
|
|
ddb6d332
|
2014-08-29T18:51:35
|
|
Added intellij matcher to gitignore
|
|
7a9d3b79
|
2014-08-29T18:41:06
|
|
Adding default colors for `.token.deleted` and `.token.inserted`
|
|
14e754fa
|
2014-08-29T17:07:00
|
|
Adjust existing code to a common style
Use Tabs.
|
|
6630ac48
|
2014-08-29T17:01:14
|
|
Merge pull request #227 from lgiraudel/gh-pages
Add support of Git commands syntax
|
|
8b71e6e4
|
2014-08-29T15:50:13
|
|
[Git language support] oldline => deleted, newline => inserted + typo
|
|
120c1221
|
2014-08-29T11:06:22
|
|
Added minified apache conf language definition
|
|
c3232e3e
|
2014-08-29T11:06:10
|
|
Renamed apacheconf back to the name without dashes
Sorry for the confusion.
|
|
d9289dd3
|
2014-08-29T11:02:48
|
|
Merge pull request #348 from GuiTeK/add-apacheconf-syntax
Add Apache configuration language definition
|
|
0ea9172c
|
2014-08-24T15:18:26
|
|
Added support for Apache configuration syntax
Supports:
-All official directives, both block and inline, up to Apache 2.4
-Block directives parameters separated by colon (":")
-Comments
-Strings
-Environment variables (eg. ${HOME})
|
|
12e2659e
|
2014-08-28T12:35:47
|
|
Added @apfelbox to credits
|
|
beb8f024
|
2014-08-28T09:39:09
|
|
Merge pull request #328 from zeitgeist87/AddSubtype
Add option to define additional subtypes for tokens
|
|
3309890f
|
2014-08-12T13:48:47
|
|
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'
}
|
|
b907ea56
|
2014-08-23T14:14:13
|
|
Merge pull request #345 from zeitgeist87/gh-pages
Update minified and auto generated files
|
|
b1cc49d8
|
2014-08-23T20:02:02
|
|
Update minified and auto generated files
|
|
d270aa19
|
2014-08-23T10:44:13
|
|
Merge pull request #343 from GuiTeK/fix-prism-php-before-insert-hook
Fixed 'before-insert' hook
|
|
ec2540af
|
2014-08-23T16:37:01
|
|
Fixed 'before-insert' hook
Fixed 'before-insert' hook: now checks if language is PHP before assigning env.code to env.backupCode.
Only "language-php" defines env.backupCode: without this condition, env.Code would be undefined for any other language than PHP after this hook is called. It would then lead to wrong behaviours (eg. Line Numbers plugin would not show lines).
|
|
f3fa64b8
|
2014-08-21T04:36:52
|
|
Merge pull request #338 from planerist/HEAD
Fixed missed encode call for webworkers
|
|
ba3bcd23
|
2014-08-20T14:42:08
|
|
Fixed missed encode call for webworkers
|
|
b3ae4b5a
|
2014-08-19T14:08:22
|
|
Merge pull request #337 from zeitgeist87/PhpLineNumberBranch
Fix line-numbers for PHP in markup
|
|
312e989c
|
2014-08-19T12:01:00
|
|
Fix line-numbers for PHP in markup
The problem is, that inline php code can be anywhere inside of a HTML
element. To properly highlight this the php language implementation
temporarily replaces all inline php code in `env.code` with something
like `{{PHP0}}`. After the markup highlighting is finished it replaces
it again with the real code, but it leaves `env.code` corrupted.
Since the line-numbers plugin uses `env.code` to count the number of
lines, the result will be broken.
So to fix this, it must be ensured, that `env.code` is restored before
the line-numbers plugin uses it.
|
|
e29996a4
|
2014-08-18T04:03:33
|
|
Merge pull request #312 from aviaryan/c-autohotkey
updated autohotkey for #307
|
|
f88c71ab
|
2014-08-15T17:34:36
|
|
Merge pull request #281 from natecook1000/gh-pages
Comprehensive Swift syntax highlighting
|
|
3cd1cb38
|
2014-08-15T16:30:50
|
|
Update Swift syntax for beta 5
|
|
76808147
|
2014-08-15T11:22:54
|
|
fix conflict in prism-swift.min.js
|
|
5acdc618
|
2014-08-15T11:22:29
|
|
Merge remote-tracking branch 'upstream/gh-pages' into gh-pages
|
|
1bd193f7
|
2014-08-15T02:52:54
|
|
Merge pull request #330 from apfelbox/test-dependency-loader
Added recursive dependency loader for test page
|
|
011e430c
|
2014-08-13T16:49:24
|
|
Added missing comma in components.json
|
|
e1a659d3
|
2014-08-13T16:46:45
|
|
Merge pull request #295 from bholst/gh-pages
Add language definition for Haskell
|
|
cf763e09
|
2014-08-13T16:36:50
|
|
Added recursive dependency loader for test page
* The page can now load dependencies of the required language recursively
* It first loads the dependencies, then the main language
* It is implemented using promises
The [promises polyfill from jakearchibald](https://github.com/jakearchibald/es6-promise) is used - the polyfill should fallback to browser behaviour, if native promises are supported.
|
|
74578aa0
|
2014-08-13T09:17:49
|
|
Update minified haskell definitions
|
|
6e26a58b
|
2014-08-12T21:35:01
|
|
Correct haskell support for strings and characters
This commit adds correct support for Haskell characters and strings.
To me, having only one type of token for characters and strings makes
no sense in Haskell as they can be distinguished easily.
Characters start with a single quote and strings start with a double
quote. Furthermore, characters can only contain —guess what— one
character whereas strings can caintain multiple or none of them.
String can also have gaps.
|
|
a70fadfd
|
2014-08-12T20:50:42
|
|
Add support for other numbers
Add support for
* hexadecimal numbers
* octal numbers
* floating point numbers with exponent
|
|
8cc777d9
|
2014-08-12T18:26:03
|
|
Make coding style in the themes more consistent
* Use tabs
* Use the same indention & whitespaces rules everywhere
|
|
297a150e
|
2014-08-12T18:08:42
|
|
Merge pull request #279 from apfelbox/line-height
Define default line height in all themes
|
|
ce354254
|
2014-06-20T13:54:37
|
|
Define default line height in all themes
This should fix #40 & #278
|
|
e1c2148c
|
2014-08-12T16:28:42
|
|
Remove remaining entities
|
|
d60c1bd5
|
2014-08-12T06:24:52
|
|
Merge pull request #327 from zeitgeist87/UseArraySyntax
Use the new array syntax for clike and coffeescript
|
|
e348e602
|
2014-08-12T12:11:31
|
|
Add auto generated files
|
|
1724e7a1
|
2014-08-11T08:26:48
|
|
Use the new array syntax for clike and coffeescript
This patch uses the new array syntax for the `clike` language and for
`coffeescript`. For `clike` it fixes a minor bug, whereby 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.
For `coffeescript` the previously used `block-comment` token name is no
longer necessary.
|
|
74e3dcbd
|
2014-08-12T05:30:31
|
|
Merge pull request #321 from zeitgeist87/gh-pages
Allow multiple regex per token name by using arrays
|
|
89bddb84
|
2014-08-12T11:27:26
|
|
Add automatically generated files
|
|
43e4e693
|
2014-08-10T23:26:10
|
|
Allow multiple regex per token name by using arrays
In most languages there are multiple different ways of declaring the
same constructs (e.g. comments, strings, ...) and sometimes it is
difficult or unpractical to match all of them with one single regular
expression. This patch adds the possibility to use an array of pattern
objects.
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
},
{
pattern: /(^|[^\\:])\/\/.*?(\r?\n|$)/g,
lookbehind: true
}
],
|
|
73cf4cc0
|
2014-08-12T01:19:14
|
|
Merge pull request #325 from zeitgeist87/FixJava
Fix Java operators to correctly highlight examples.html
|
|
4d352495
|
2014-08-12T01:16:07
|
|
Fix Java operators to correctly highlight examples.html
This patch basically adds a lot of `=?` at the end of operators that
were missing. The order of the `>=` and `<=` operator was wrong. It also
changes the order of the lookbehind pattern, so that the start of the
line is matched first. This last change fixes a lot of the bugs on the
`example.html` page.
The design of Prism makes it seem as if the regex multi line flag has no
effect, because strings are continuosly split up before the regexes are
applied. In this case it is necessary so that `^` is interpreted as the
start of a line instead of the start of the document.
|
|
45596956
|
2014-08-12T00:27:23
|
|
Merge pull request #322 from zeitgeist87/ExampleFix2
Add HTTP, Coffeescript and Java to gulpfile
|
|
48535016
|
2014-08-11T07:59:09
|
|
Add HTTP, Coffeescript and Java to example.html
If those languages are not included `examples.html` has a lot
of code, that is not highlighted at all.
|
|
fd69b247
|
2014-08-10T16:06:38
|
|
Merge pull request #319 from zeitgeist87/gh-pages
Allow multiple tokens to be mapped to the same CSS class
|
|
fef8cd49
|
2014-08-10T08:24:02
|
|
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
},
|
|
d4824538
|
2014-08-08T19:12:12
|
|
Added minified latex language definition
|
|
5f661409
|
2014-08-08T12:34:15
|
|
Merge pull request #316 from japborst/gh-pages
Added initial LaTeX support
|
|
24bf8ab7
|
2014-08-08T13:16:06
|
|
Included LaTeX suggestions
|
|
657b089f
|
2014-08-06T19:44:18
|
|
Added initial LaTeX support
|