|
8541db2e
|
2021-08-09T11:45:09
|
|
Swift: Major improvements (#3022)
|
|
ac1d12f9
|
2021-06-16T00:08:04
|
|
Liquid: Added Markup support, missing tokens, and other improvements (#2950)
|
|
c4f6b2cc
|
2021-06-02T15:34:38
|
|
Adding basic support for Mathematica (#2921)
Co-authored-by: Michael Schmidt <mitchi5000.ms@googlemail.com>
|
|
43976351
|
2021-05-04T19:00:33
|
|
Handlebars: Added `hbs` alias (#2874)
|
|
de79636a
|
2021-05-01T14:57:39
|
|
Website: Moved remaining vendor files into `vendor` folder (#2829)
|
|
b03e7eb0
|
2021-04-17T22:30:39
|
|
ESLint: Added semi rule (#2836)
|
|
9cae4461
|
2021-04-17T22:26:40
|
|
ESLint: Added quotes rule (#2835)
|
|
772d42be
|
2021-03-26T13:16:16
|
|
Added ESLint with minimal config (#2831)
|
|
1b63cd01
|
2021-03-23T14:04:45
|
|
Αdded support for Q# (#2804)
|
|
96335642
|
2021-03-21T17:22:54
|
|
Plugins: Consistent Prism check (#2788)
|
|
1a2347a3
|
2021-03-21T16:44:25
|
|
Added support for OpenQasm (#2797)
|
|
5943f4cb
|
2021-03-17T11:40:37
|
|
Nginx: Complete rewrite (#2793)
|
|
e9314415
|
2021-02-23T20:44:32
|
|
Added support for Idris (#2755)
|
|
b0a6ec85
|
2021-02-19T11:11:51
|
|
Added support for CFScript (#2771)
|
|
3419fb77
|
2021-02-13T17:14:46
|
|
Added KuMir (#2760)
|
|
fd1081d2
|
2021-01-29T15:01:24
|
|
Added support for Squirrel (#2721)
|
|
bbc77d19
|
2021-01-24T15:51:37
|
|
Added support for URIs (#2708)
|
|
3f7d7453
|
2021-01-24T15:40:08
|
|
Added support for ChaiScript (#2706)
|
|
1f91868e
|
2021-01-17T14:29:35
|
|
Added support for DOT (#2690)
|
|
72962701
|
2021-01-08T22:22:50
|
|
Added support for V langauge (#2687)
|
|
f0e2b70e
|
2020-11-20T17:09:54
|
|
Added support for Apex (#2622)
|
|
7a74497a
|
2020-11-04T21:50:43
|
|
Made Autoloader and Diff Highlight compatible (#2580)
|
|
89ebb0b7
|
2020-11-04T17:28:20
|
|
PHP: Removed C-like dependency (#2619)
|
|
cb75d9e2
|
2020-09-13T23:26:33
|
|
Added support for SML (#2537)
|
|
4d31e22a
|
2020-09-11T12:07:11
|
|
Added support for Birb (#2542)
|
|
bfb36748
|
2020-09-11T15:24:20
|
|
Shell-Session: Added aliases (#2548)
|
|
d36ea993
|
2020-09-11T15:15:56
|
|
Autoloader: Fixed file detection regexes (#2549)
|
|
ad748a00
|
2020-08-30T18:16:21
|
|
Added PureScript language definition (#2526)
|
|
5c33f0bb
|
2020-08-17T15:39:02
|
|
Added support for BSL (1C:Enterprise) (#2520)
|
|
004eaa74
|
2020-08-14T00:00:21
|
|
Added support for MongoDB syntax (#2518)
|
|
bf115f47
|
2020-08-11T15:33:48
|
|
Added support for TypoScript (#2505)
|
|
388ad996
|
2020-08-07T21:14:34
|
|
Add support for NaniScript (#2494)
|
|
78161d60
|
2020-07-22T18:37:16
|
|
VB: Added VBA alias (#2469)
|
|
3fcce6fe
|
2020-07-22T18:12:01
|
|
Added support for .gitignore (#2481)
|
|
2805ae35
|
2020-07-18T15:02:33
|
|
JSDoc: Improvements (#2466)
|
|
67f97e2e
|
2020-07-13T14:40:31
|
|
Kotlin: Added `kt` and `kts` aliases (#2474)
|
|
a3416bf3
|
2020-07-01T00:39:29
|
|
Autoloader: Fix (#2449)
|
|
1654b25f
|
2020-06-28T02:03:01
|
|
Autoloader: Fixed data-dependencies and extensions (#2326)
|
|
91fdd0b1
|
2020-06-28T01:58:55
|
|
Website: New assets directory for all web-only files (#2180)
|
|
a3758728
|
2020-06-27T22:38:50
|
|
Added test to sort the language list (#2222)
|
|
6352213a
|
2020-05-29T16:22:10
|
|
Solidity: Added `sol` alias (#2382)
|
|
9782cfe6
|
2020-05-18T02:29:27
|
|
Markup & JSON: Added new aliases (#2390)
This adds the `rss` and `atom` alias for Markup and the `webmanifest` alias for JSON.
|
|
4935b5ca
|
2020-05-16T11:22:21
|
|
Ren'Py: Added `rpy` alias (#2385)
|
|
b6093339
|
2020-05-13T11:32:36
|
|
T4-VB: Use the right VB variant (#2341)
I used the wrong VB variant when creating T4 VB. It should have been VB.net.
|
|
caec5e30
|
2020-05-13T11:26:38
|
|
Added support for XML doc in C#, F#, and VB.net (#2340)
|
|
d0c1c70d
|
2020-05-06T23:59:29
|
|
Added support for PureBasic (#2369)
A language based on Basic (BlitzBasic to be precise) with inline assembler also and direct API calls. Can compile on Windows, Linux, and macOS
|
|
33e49956
|
2020-04-29T15:39:59
|
|
GLSL: Improvements (#2321)
This improves GLSL by extending C instead of C-like.
|
|
87a5c7ae
|
2020-04-29T15:29:51
|
|
Added support for HLSL (#2318)
https://docs.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl
|
|
053016ef
|
2020-04-27T23:18:30
|
|
Added support for Racket (#2315)
|
|
eb70070d
|
2020-04-27T22:43:30
|
|
Added support for SSML (#2306)
|
|
1093ceb3
|
2020-04-27T22:33:02
|
|
Added support for UnrealScript (#2305)
|
|
bd4d8165
|
2020-04-27T22:29:20
|
|
Added support for Peoplecode (#2302)
|
|
67c6b7af
|
2020-04-26T19:30:31
|
|
Objectivec: Added `objc` alias (#2331)
|
|
5cdc3251
|
2020-04-16T22:36:38
|
|
Autoloader: Improved path detection and other minor improvements (#2245)
|
|
0cfb6c5f
|
2020-04-04T13:04:08
|
|
EJS: Added `eta` alias (#2282)
|
|
57eebced
|
2020-03-26T12:10:09
|
|
BBCode: Added "shortcode" alias (#2273)
This adds a "shortcode" alias to BBCode to support Wordpress' ShortCode.
|
|
8119e57b
|
2020-03-16T21:17:45
|
|
Added support for Power Query (#2250)
This adds support for Power Query.
https://docs.microsoft.com/en-us/powerquery-m/
|
|
bf4f7bfa
|
2020-03-10T14:59:46
|
|
Added support for Excel formula (#2219)
This adds support for Excel's formula terms.
|
|
26626ded
|
2020-03-07T11:43:10
|
|
OpenCL: Require C (#2231)
This changes the language requirement of OpenCL from C++ to C making C++ optional.
|
|
15983d52
|
2020-02-23T14:12:37
|
|
Added support for Solution (.sln) files (#2213)
This adds support for VS Solution files.
https://docs.microsoft.com/en-us/visualstudio/extensibility/internals/solution-dot-sln-file?view=vs-2019
|
|
b24f7348
|
2020-02-14T21:55:32
|
|
Add Concurnas support (#2206)
Concurnas is an open-source JVM programming language designed for building reliable, scalable, high performance concurrent, distributed and parallel systems. For more information please see: https://concurnas.com/
|
|
c40d96c6
|
2020-01-08T15:57:52
|
|
Added QML (#2139)
This adds support for QML (Qt Modeling Language), a user interface markup language.
https://en.wikipedia.org/wiki/QML
https://doc.qt.io/qt-5/qtqml-index.html
|
|
694a81b8
|
2020-01-05T20:00:51
|
|
Added support for Latte & NEON (#2140)
- Added support for templating system Latte https://latte.nette.org
- Added support for NEON https://ne-on.org
|
|
baa78774
|
2019-11-16T00:59:18
|
|
Rename "robot-framework" to "robotframework" (#2113)
This changes the id of the Robot Framework language.
|
|
f31946b3
|
2019-10-25T21:53:29
|
|
Added support for Moonscript (#2100)
This adds support for the Moonscript language.
|
|
2108c60f
|
2019-10-25T17:34:50
|
|
Core: IE11 workaround for currentScript (#2104)
This adds a new function `Prism.util.currentScript` which is a functionally equalent to `document.currentScript` but includes support for IE11.
|
|
3640b3f2
|
2019-10-23T11:45:12
|
|
SAS: Added support for embedded Groovy and Lua code (#2091)
Like PROC SQL, PROC GROOVY and PROC LUA both contain syntax that should be treated as the language specified by the PROC, not SAS. This implements that highlighting.
|
|
cfac94ec
|
2019-10-16T11:41:51
|
|
Added SQF language (#2079)
This adds support for the SQF language.
https://community.bistudio.com/wiki/SQF_syntax
|
|
0b771c90
|
2019-10-16T11:33:14
|
|
Added support for etlua (#2050)
This adds support for etlua (Embedded Lua templating).
|
|
aaaa29a8
|
2019-10-16T11:28:54
|
|
Added support for ANTLR4 (#2063)
This adds support for ANTLR4.
Languages embedded via actions are not highlighted.
|
|
2f3da7e8
|
2019-10-16T11:18:57
|
|
Added support for FTL (#2080)
This adds support for FTL (Freemarker language).
|
|
cdfa60ac
|
2019-09-30T19:43:33
|
|
Added plugin descriptions to plugin list (#2076)
This adds plugin descriptions to the plugin lists on the website.
|
|
c42f877d
|
2019-09-05T17:28:28
|
|
Added support for SPARQL language (#2033)
This adds support for the SPARQL language.
https://www.w3.org/TR/sparql11-query/
|
|
f7eaa618
|
2019-09-03T12:56:20
|
|
Added Robot Framework plain text format (#2034)
This adds support for the Robot Framework plain text space separated format.
https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#plain-text-format
|
|
cc2cf3f7
|
2019-09-02T20:29:26
|
|
Added support for Solidity (#2031)
This adds support for the Solidity language.
https://solidity.readthedocs.io/en/v0.4.23/
|
|
9f722586
|
2019-08-17T14:36:50
|
|
Added support for Firestore security rules (#2010)
This adds support for Google Cloud Firestore security rules.
|
|
076f6155
|
2019-08-08T15:16:31
|
|
SAS: Major improvements (#1981)
This makes various improvements to the SAS language definition such as adding support for embedded SQL, missing keyword and language elements, more granular tokenizing, and many more.
|
|
508d57ac
|
2019-08-06T15:30:24
|
|
Added RDF Turtle/TriG language (#2012)
This adds support for the RDF Turtle/TriG language.
|
|
05823e88
|
2019-07-22T02:07:42
|
|
Markdown: Added support for auto-loading code block languages (#1898)
This lets Markdown load embedded languages using the Autoloader plugin which now exposes the `loadLanguages` function.
This also changes `loadLanguages` to always invoke callbacks asynchronously and to invoke error callbacks only once.
|
|
c8844286
|
2019-07-21T22:59:46
|
|
Highlight JS tagged template literals (#1931)
This adds support for highlighting embedded languages in JavaScript tagged template literals.
|
|
452d5c7d
|
2019-07-21T20:06:02
|
|
Autoloader: Improved component path guessing (#1928)
This changes the behavior of how the Autoloader handles `data-autoloader-path` attributes and guesses the components path.
The CDN example on the front page was also updated.
|
|
5d992fc5
|
2019-07-20T12:52:48
|
|
Added basic support for LilyPond (#1967)
This adds very basic support for LilyPond.
More advanced features weren't implemented because the author (me) has no idea about music.
|
|
bb84f98c
|
2019-07-15T23:22:20
|
|
Added support for DNS zone files (#1961)
This adds support for DNS zone files.
The highlighting is quite simple as every type and class is highlighted as `keyword`. This is intentional as other token names (e.g. `class-name`, `function`, `builtin`, ...) are not highlighted by every theme resulting in large portions of unstyled text for some themes.
|
|
473f7fbd
|
2019-07-03T12:34:20
|
|
Added support for PC-Axis file format (#1940)
This adds a new language for the PC-Axis file format.
|
|
b19f512f
|
2019-06-30T03:20:40
|
|
Autoloader: Fixed and improved callbacks (#1935)
This PR fixes and improves the internal Autoloader callbacks.
### Bug
Callbacks were stored in `success_callbacks` and `error_callbacks` and not removed after execution meaning once added, a callback was executed every time the language for which the callback was added for was requested (either directly or as a dependency).
This bug wasn't very visible because of how the Autoloader is usually used. Usually, the Autoloader is used to load the languages for the static code in a page. This means that the Autoloader gets asked for a bunch of languages, loads them asynchronously and then executes the callbacks with this [line](https://github.com/PrismJS/prism/blob/d4373f3a282f4c09e4fb4dcbd8885c7848b61073/plugins/autoloader/prism-autoloader.js#L187) (`success` is [this](https://github.com/PrismJS/prism/blob/d4373f3a282f4c09e4fb4dcbd8885c7848b61073/plugins/autoloader/prism-autoloader.js#L306) function). Because it takes a little while until the language is loaded (certainly until the next tick), all callbacks will be registered before the `onload` of the script is called meaning that [this](https://github.com/PrismJS/prism/blob/d4373f3a282f4c09e4fb4dcbd8885c7848b61073/plugins/autoloader/prism-autoloader.js#L300) never gets executed.
Thus the bug doesn't show up. (And even if it does, the success callback is usually just a `Prism.highlightElement` call.)
I discovered this bug when I used Autoloader to highlight C like code and then after that was done (some ticks later), I used Autoloader to highlight JavaScript code. What followed was that the synchronously called callbacks caused a stack overflow. Just a bit of good ol' infinite recursion.
I could have also fixed it by deferring callbacks to the next tick but I decided to rework the callback structure because this change of behavior might break some code. Autoloader invokes the callbacks of already loaded languages (and failed ones) synchronously while all other callbacks are called asynchronously. This fix keeps this behavior.
(It's another question as to whether we should call all callbacks asynchronously. <sub><sup>Yes, we should IMO.</sup></sub>)
### Improvements
1. [This](https://github.com/PrismJS/prism/blob/d4373f3a282f4c09e4fb4dcbd8885c7848b61073/plugins/autoloader/prism-autoloader.js#L218) declaration and usage of `data` is completely unnecessary and was removed.
1. Typings for `lang_data`.
|
|
0b48301e
|
2019-06-12T15:46:07
|
|
Resolved conflicts
|
|
d4373f3a
|
2019-06-08T23:50:11
|
|
gulp: JSON formatting for partly generated files (#1933)
This introduces better formatting for the generated JSON objects in the Autoloader and Show language plugins.
|
|
a8164559
|
2019-06-02T14:36:05
|
|
C#: Added `cs` alias (#1899)
|
|
5ad58a75
|
2019-05-28T18:25:04
|
|
LaTeX: Added TeX and ConTeXt alias (#1915)
Added TeX and ConTeXt alias. Some minor formatting.
|
|
96044979
|
2019-05-15T21:06:59
|
|
Added shell session language
|
|
66b44e3b
|
2019-03-24T23:03:10
|
|
Travis: Fail when changed files are detected (#1819)
This adds a new check to the Travis CI config which will cause the build to fail if any files change (This usually indicates that the committer forgot to rebuild Prism.). To implement this, we also add the `package-lock.json` file.
|
|
5c1a6fb2
|
2019-03-24T19:05:03
|
|
Added alias tests (#1832)
This adds tests which check the aliases specified in `components.json`.
|
|
52889b5b
|
2019-03-24T18:52:44
|
|
Autoloader: Added support for aliases (#1829)
This adds alias support for the Autoloader plugin.
|
|
fd4c764f
|
2019-03-24T18:43:31
|
|
Autoloader: Fixed the directory of scripts (#1828)
This fixes some incorrect script paths.
|
|
439ea1ee
|
2019-03-11T00:32:45
|
|
Added scripts directory (#1781)
This adds a new `scripts` directory for all scripts used exclusively by the prismjs.com website.
|
|
f2467488
|
2019-03-10T18:53:08
|
|
Django/Jinja2 improvements (#1800)
This completely rewrites the Django language definition. It's now based on markup-templating.
|
|
3e00bb9c
|
2019-03-07T15:22:30
|
|
Rebuilt Prism (#1794)
This is a rebuilt of Prism to update minified files.
|
|
c37c90df
|
2019-03-05T22:17:36
|
|
Added EJS (#1769)
This adds the EJS (Embedded JavaScript templates) language to Prism.
|
|
c9a32674
|
2019-03-05T22:06:33
|
|
Fixed dependencies of Pug and Pure (#1759)
This removes dependencies of Pug and Pure to languages which do not exist (yet).
|
|
16f2ad06
|
2019-03-04T22:59:24
|
|
Added T4 Text Templates (#1699)
This adds T4 Text Templates in both the C# and VB language variants.
|