|
7def8f5c
|
2019-01-03T23:52:27
|
|
Added N1QL language support (#1620)
Adds support for[N1QL](https://www.couchbase.com/products/n1ql) for Couchbase.
|
|
c939df8e
|
2018-12-27T20:56:24
|
|
Added support for HCL (#1594)
Adds support for HCL ([HashiCorp configuration language](https://github.com/hashicorp/hcl)).
|
|
b48c012c
|
2018-12-15T20:32:22
|
|
Added Vala language (#1658)
Adds support for the Vala language.
|
|
4a8219a4
|
2018-12-02T19:25:05
|
|
Add support for Java stack traces (#1520)
There are 3 main types of elements which are highlighted:
1. The summary.
This is the head of the stack trace and includes the name of the exception and a message.
`Exception in thread "main" java.lang.RuntimeException: A test exception`
2. Stack frames.
These make up the actual stack trace and include the full name of the method and the source.
`at com.stackify.stacktrace.StackTraceExample.methodB(StackTraceExample.java:13)`
3. Omitted frames.
This is a simple message that some frames were omitted.
`... 27 more`
Everything besides these 3 element types will not be highlighted.
|
|
5b6ad70d
|
2018-12-02T16:44:21
|
|
Add TOML support (#1488)
Add support for [Tom's Obvious, Minimal Language](https://github.com/toml-lang/toml).
Some simplifications:
1. The `.`s of dotted keys are not highlighted. This is because the `.` could be inside
quotes and checking that isn't easy.
2. There is no distinction between table `[foo]` and array `[[foo]]`. `foo` will be
highlighted as `table` in both cases.
|
|
b0d1823c
|
2018-12-01T21:24:31
|
|
Clean up Previewers' page (#1630)
This PR makes some changes to the [Previewers plugin's page](https://prismjs.com/plugins/previewers/).
1. Format the code examples to look nicer.
2. Fix the example of the 'Disabling a previewer' section.
3. Highlight API snippets as JavaScript.
|
|
2288c25e
|
2018-12-01T18:37:20
|
|
Add G-code language (#1572)
This PR adds the [G-code language](https://reprap.org/wiki/G-code) to Prism
and resolves #1571.
### Features
- All fields from A-Z ([case sensitive](https://reprap.org/wiki/G-code#Case_sensitivity)) and [checksums](https://reprap.org/wiki/G-code#.2A:_Checksum) (`*`).
- [Comments](https://reprap.org/wiki/G-code#Comments) of both the semicolon and parenthesis style.
- [Quoted strings](https://reprap.org/wiki/G-code#Quoted_strings).
- The colon punctuation of [lists (see the example)](https://reprap.org/wiki/G-code#M584:_Set_drive_mapping).
|
|
38def334
|
2018-11-28T17:45:17
|
|
Add new language: CIL (#1593)
Add support for the Common Intermediate Language from .NET.
|
|
10239c14
|
2018-11-28T15:29:22
|
|
Prevent double-loading & add scope to File Highlight (#1586)
Checks if a file has been loaded already and bails if it is and adds the ability to
limit the scope of the file highlight plugin.
|
|
9f6e5026
|
2018-11-28T14:23:53
|
|
Fixed class regex for Command Line plugin (#1566)
Fixes #1564 where the plugin would wrongly detect `command-line-prompt`
causing the alignment issue.
|
|
7a2d153b
|
2018-11-12T20:14:19
|
|
Revert "Show invisibles inside tokens"
This reverts commit 2d622f17e4f6d746e8f4fa211c7f6b7ccb3f27b4.
|
|
2d622f17
|
2018-11-12T20:12:44
|
|
Show invisibles inside tokens
|
|
2ba62268
|
2018-11-12T13:32:32
|
|
Updated styles of show invisibles (#1607)
Changes the color of the placeholders of invisible characters.
They will now use the default text color of the theme as the base
and blend in instead of a fixed color for all themes.
|
|
bfa5a8d9
|
2018-09-23T15:17:22
|
|
Resolved variable name clash (#1568)
There is another variable named script in the autoloader.
|
|
e529edd8
|
2018-09-15T21:52:37
|
|
Add GameMaker Language support (#1551)
GameMaker is a cross-platform game engine developed by YoYo Games.
|
|
2fb66e04
|
2018-08-19T16:50:41
|
|
Added missing aliases to components.json (#1503)
Also enforced `alias` before `owner`.
|
|
4b56f3c1
|
2018-08-19T16:33:54
|
|
Fixed Previewers bug #1496 (#1497)
The problem was a bug unique to Firefox which causes offsetTop of span.token
to always be 0 under certain conditions. It only occurred together with of the
line-number plugin because setting position: relative for the pre > code elements
triggers that FF bug.
The offset is now calculated using bounding boxes.
Tested in Chrome, Edge, IE, FF, and Opera.
Fixes #1496.
|
|
44fed4d3
|
2018-08-19T16:10:29
|
|
Replaced all occurrences of `new RegExp` with `RegExp` (#1493)
Using the factory vs constructor form is the same, so removing
`new` results in less code.
|
|
09b56af2
|
2018-06-16T11:34:41
|
|
Merge pull request #1430 from PrismJS/add-tap
Add TAP component
|
|
9ee4f547
|
2018-06-01T13:52:21
|
|
Make line-numbers styles more specific
The padding added to `pre.line-numbers` in the line-number's CSS is
overwritten by the theme's CSS if the theme is loaded second. This
ensures the CSS can come in any order without specificity issues.
|
|
8c2b71f1
|
2017-01-27T20:21:46
|
|
Add TAP component
Includes build changes.
|
|
a0bfc84d
|
2018-05-26T11:59:14
|
|
Add `objectpascal` as an alias to `pascal` (see #1426)
|
|
e326cb03
|
2018-05-26T11:39:35
|
|
Add support for XQuery. Fix #1405 (#1411)
|
|
e063992b
|
2018-05-10T12:07:34
|
|
Support for Template Toolkit 2 (#1418)
* support for Template Toolkit 2
* optimized quoted string regexes
* optimized double-quoted string regex
* fully qualified tt2 plug-in names don't work
Also use \w.
* do not use empty character class
See #1107.
* put keyword tests in alphabetical order
* ordered tt2 keywords alphabetically
* removed redundant operator rule for tt2
* removed possibly existing old rules before inserti
* indentation
* allow backslash in front of lf in tt2 strings
* indentation
* avoid backtracking
* escape xml special characters
* indent with tab instead of spaces
* greedy is no longer needed for variables
Also use \w instead of explicit character class.
* re-generated with gulp
|
|
fa328bb1
|
2018-05-01T16:53:32
|
|
ASP.NET should require C#
|
|
0a701430
|
2018-05-01T16:53:13
|
|
Run gulp
|
|
eef860cb
|
2018-04-27T17:23:38
|
|
Move guard into conditional and check for language
|
|
c1118692
|
2018-04-27T16:50:27
|
|
Don't process language if block language not set
Adding this guard to the function prevents an error if the language is undefined. `env.language.substring(0, 1).toUpperCase()` can fail with `Uncaught TypeError: Cannot read property 'substring' of undefined` when `env.language` is undefined.
|
|
7bc9a4a1
|
2018-04-22T16:18:32
|
|
Simplify lang regex on File Highlight plugin (#1399)
Similar to #854.
|
|
d95f8fb4
|
2018-04-22T15:55:38
|
|
Use rel="icon" instead of rel="shortcut icon" (#1398)
|
|
cd22499c
|
2018-04-17T21:31:45
|
|
File Highlight: Fix issue causing the Download button to show up on every code blocks.
|
|
95146c8f
|
2018-04-17T01:28:42
|
|
Use HTTPS / canonical URLs (#1390)
Also, remove the broken link in `/index.html`.
|
|
b4509bf5
|
2018-04-11T08:58:28
|
|
Add support for Soy (Closure Template). Fix #1316 (#1387)
|
|
c28d8c5e
|
2018-04-11T08:53:56
|
|
Add support for WebAssembly. Fix #1140 and fix #1384 (#1386)
|
|
6e0b20a4
|
2018-04-11T08:50:52
|
|
Add support for GEDCOM. Fix #899 (#1385)
|
|
c673ec29
|
2018-04-11T08:47:26
|
|
Add support for Visual Basic. Fix #985 (#1382)
|
|
5a524f7e
|
2018-04-11T08:44:44
|
|
Add support for Velocity. Fix #1372 (#1378)
|
|
659ea314
|
2018-04-07T10:41:08
|
|
Core: Fix support for language alias containing dash `-`
|
|
9f22952d
|
2018-03-26T22:25:03
|
|
File Highlight: Add option to provide a download button, when used with the Toolbar plugin. Fix #1030
|
|
094d5463
|
2018-03-26T02:14:54
|
|
Command Line: Allow specifying output prefix using data-filter-output attribute. (#856)
|
|
5f9c078a
|
2018-03-25T13:46:42
|
|
Make ERB, Handlebars, PHP and Smarty highlight properly in NodeJS (#1367)
|
|
3599e6a3
|
2018-03-11T12:11:51
|
|
Add support for PL/SQL (#1338)
* Add support for PL/SQL (Fix #1149)
* Merge gh-pages
|
|
e6213acb
|
2018-03-11T12:02:50
|
|
Add support for ERB. Fix #1318
|
|
c3ed5b52
|
2018-03-11T11:11:05
|
|
Website: Auto-generate example header with component title, list of aliases and dependencies.
`overrideExampleHeader` can be used to generate only the component title.
|
|
0bc98ac1
|
2018-03-07T21:31:40
|
|
Add support for ARFF (Fix #653) (#1327)
|
|
109bd6f8
|
2018-03-04T13:42:41
|
|
Autolinker Plugin: Allow more chars in query string and hash to match more URLs. Fix #1142
|
|
c246c1a6
|
2018-03-04T12:32:19
|
|
Unescaped Markup Plugin: Use msMatchesSelector for IE11 and below. Fix #1302
|
|
fce583b2
|
2018-03-01T13:05:13
|
|
Merge pull request #1314 from mAAdhaTTah/feature/bump-clipboard-version
Bump ClipboardJS to 2.0.0 and remove hack
|
|
929cc8c0
|
2018-03-01T16:50:57
|
|
Add also minified version
|
|
ebe24b2e
|
2018-03-01T16:39:00
|
|
Fix rehighlighting
|
|
e9f410ea
|
2018-03-01T10:15:27
|
|
Bump ClipboardJS to 2.0.0 and remove hack
This is no longer needed, since it no longer conflicts w/ the
built-in global.
|
|
3dddac91
|
2018-03-01T08:51:45
|
|
Autoloader: Fix demo page
|
|
84eeb895
|
2018-02-23T00:12:17
|
|
Prevent scrolling toolbar with content
If content is wider than screen, during scrolling toolbar is not moving anymore.
|
|
7a9dbe05
|
2018-02-12T23:43:12
|
|
WebPlatform Docs plugin: Fix links. Fixes #1290
|
|
e84ab106
|
2018-02-05T08:39:29
|
|
Run gulp
|
|
fbe82b86
|
2018-02-05T08:36:19
|
|
added tsx support (#1280)
* added tsx support
* fixed order in components.js and added tsx example file
* escape less than and capitalize tsx
|
|
b08cae56
|
2018-01-31T22:38:01
|
|
Add support for highlighting CSP, HSTS, and HPKP (#1275)
* Add CSP support.
* Add HPKP support.
* Add HSTS support.
* Updates based on feedback.
* Updates based on feedback.
* Updates based on feedback.
* Updates based on feedback.
* Updates based on feedback.
* Updates based on feedback.
* Updates based on Feedback.
* Fix parentheses.
* List csp, hpkp, and hsts in components.js
* Add missing base64 chars to 'nonce-...' and 'sha-...' source expressions
* Add support for 'sha384-...' and 'sha512-...' source expressions
* Add tests and examples for csp
* Add tests and examples for hsts
* Add tests and examples for hpkp
* hpkp: Include the sha256 hash in the directive itself
Prevent the numbers in the base64 string from being classified
as "safe" or "unsafe".
* Rebuild the minified csp and hpkp components
* Rebuild the "Show Language" plugin as well
* Fix copy/paste error in test description
|
|
7bcdae72
|
2018-01-17T23:32:41
|
|
Unescaped markup plugin: Make it work with any language (#1265)
|
|
28e4b4c6
|
2018-01-16T08:48:08
|
|
Previewers: New plugin combining previous plugins Previewer: Base, Previewer: Angle, Previewer: Color, Previewer: Easing, Previewer: Gradient and Previewer: Time. Fix #913 (#1244)
|
|
39502622
|
2017-12-19T07:50:47
|
|
Run gulp
|
|
2ece18b4
|
2017-12-16T10:35:23
|
|
Add support for 6502 assembly (#1245)
* Add support for 6502 assembly
* Address PR feedback
|
|
39360d6d
|
2017-12-07T19:58:28
|
|
Merge branch 'autoloader-path1' of https://github.com/bazooka07/prism into bazooka07-autoloader-path1
# Conflicts:
# plugins/autoloader/prism-autoloader.min.js
|
|
e66de38b
|
2017-12-06T23:03:15
|
|
fix for autoloader plugin
|
|
05cc391a
|
2017-12-06T20:35:51
|
|
Run gulp and reorder components alphabetically
|
|
0fffa9df
|
2017-12-06T20:27:49
|
|
Xeora Language implementation (#1239)
|
|
d74430ff
|
2017-11-25T16:31:01
|
|
upgrade autoloader
|
|
924784a8
|
2017-12-05T21:38:43
|
|
Unescaped Markup: Fix ambiguity in documentation by improving examples. Fix #1197
|
|
a31f4906
|
2017-12-05T21:25:21
|
|
Revert "Line Highlight: Inherit white-space from pre"
This reverts commit d6881da
This is actually a bad idea since Line highlight does not fully support soft wrap on its own at the moment. It relies on Line numbers to work properly.
|
|
d6881dac
|
2017-12-05T21:19:48
|
|
Line Highlight: Inherit white-space from pre
|
|
3842a914
|
2017-12-05T21:19:20
|
|
Line Highlight: Don't wait for the Line numbers plugin to load if the element does not have the line-numbers class
|
|
d8999891
|
2017-12-05T21:18:21
|
|
Run gulp
|
|
e63058f9
|
2017-12-05T22:16:35
|
|
Fixes to compatibility of line number and line higlight plugins (#1194)
* Fix line breaks issues in line numbers plugin used with soft wraps option
* Fix line highlight plugin compatibility issues with line number plugin
* Revert rename data attribute for line numbers plugin
* Fix compatibility issues with line highlight and line numbers
|
|
a1b85e31
|
2017-12-05T08:47:42
|
|
Copy to clipboard: Update to v1.7.1. Fix #1220
|
|
e7b5e823
|
2017-12-05T08:46:24
|
|
Copy to clipboard: Fix test for native Clipboard. Fix #1241
|
|
4c530a13
|
2017-11-11T23:43:28
|
|
Run gulp
|
|
d27b70dc
|
2017-11-11T23:42:44
|
|
Add support for Flow
Fix #1216
|
|
2169c995
|
2017-10-21T04:06:35
|
|
Add Python builtin function highlighting (#1205)
* Add Python builtin function highlighting
* Add builtin functions from Python 3.6
* Python: Add 'nonlocal' and 'None' keywords
* Update tests for Python
* Python: Remove duplicated builtins that are already keywords
* Run gulp
|
|
317f6908
|
2017-10-20T12:29:15
|
|
Update function test for Python and run gulp
|
|
b41d571d
|
2017-10-19T14:20:24
|
|
Reset Clipboard to undefined if native code (#1206)
Chrome now ships with a window.Clipboard built in, which breaks
this check. This ensures we're not grabbing the built-in
Clipboard and definitely have the correct package version.
Fixes #1181.
|
|
ea2d63e7
|
2017-10-10T08:51:04
|
|
Run gulp
|
|
6084f051
|
2017-10-10T08:50:42
|
|
Merge branch 'gh-pages' of https://github.com/jjcm/prism into jjcm-gh-pages
# Conflicts:
# plugins/autoloader/prism-autoloader.js
# plugins/autoloader/prism-autoloader.min.js
|
|
311aeda0
|
2017-10-10T07:42:26
|
|
Run gulp
|
|
ed8bdb55
|
2017-10-10T01:40:44
|
|
Check if tokens exists and return (#1195)
If the language was autoloaded, the grammar may not exist yet.
We need to check if it exists before we attempt to modify it.
|
|
35ec61a3
|
2017-10-10T15:10:04
|
|
Minor spelling changes for style
|
|
f680ee70
|
2017-10-10T15:05:49
|
|
Updated all instances of jade to be named pug.
|
|
5ac0afb4
|
2017-09-16T12:58:50
|
|
Merge branch 'opencl' of https://github.com/Milania1/prism into Milania1-opencl
# Conflicts:
# plugins/autoloader/prism-autoloader.js
# plugins/autoloader/prism-autoloader.min.js
# plugins/show-language/prism-show-language.js
# plugins/show-language/prism-show-language.min.js
|
|
2e43fcf1
|
2017-09-13T20:47:39
|
|
Autolinker: Silently catch any error thrown by decodeURIComponent. Fixes #1186
|
|
78db01eb
|
2017-09-09T14:01:07
|
|
Run gulp
|
|
76f4dc36
|
2017-09-09T14:00:52
|
|
Merge remote-tracking branch 'official/gh-pages' into gh-pages
|
|
abc007f6
|
2017-09-09T04:02:07
|
|
fixed an rendering issue for encoded urls (#1173)
If a url contains some special characters, like space or "<", it needs to be encoded in order to be recognized as a valid url. Adding a decoding step allows these urls to render correctly.
|
|
eaa8ebb4
|
2017-09-09T12:40:24
|
|
Merge branch 'n4js' of https://github.com/bsmith-n4/prism into bsmith-n4-n4js
# Conflicts:
# plugins/show-language/prism-show-language.js
# plugins/show-language/prism-show-language.min.js
|
|
87780d26
|
2017-09-09T12:22:18
|
|
Run gulp
|
|
3fb7cf81
|
2017-09-09T12:21:10
|
|
Merge branch 'gh-pages' of https://github.com/dfitiskin/prism into dfitiskin-gh-pages
# Conflicts:
# plugins/line-numbers/prism-line-numbers.js
|
|
25788eb5
|
2017-09-09T12:05:55
|
|
Merge branch 'RemoveIE8' of https://github.com/zeitgeist87/prism into zeitgeist87-RemoveIE8
# Conflicts:
# components/prism-core.js
# components/prism-core.min.js
# plugins/line-highlight/prism-line-highlight.js
# plugins/line-highlight/prism-line-highlight.min.js
# prism.js
|
|
2760ab5f
|
2017-09-09T11:37:24
|
|
Run gulp
|
|
44010886
|
2017-09-09T11:28:31
|
|
Run gulp
|
|
7f664260
|
2017-09-09T11:11:35
|
|
Line numbers plugin: Don't use inline-block on code, it would break the Coy theme.
|
|
849f1d63
|
2017-09-09T11:07:02
|
|
Merge branch 'gh-pages' of https://github.com/VitaliyR/prism into VitaliyR-gh-pages
# Conflicts:
# plugins/line-numbers/index.html
# plugins/line-numbers/prism-line-numbers.js
|
|
1a628b8d
|
2017-08-17T22:12:51
|
|
Add OpenCL language support
|
|
5400af9e
|
2017-07-20T15:31:14
|
|
Added a default for classMap. Fixes #1137. (#1157)
When the classMap is accessed, it is undefined, causing this look up to fail. Defaulting it to an empty object provides the right logic.
https://github.com/PrismJS/prism/blob/16ce4b336d625e13065bfc12ab6d13ac862d6f50/plugins/custom-class/prism-custom-class.js#L25
|