components.js


Log

Author Commit Date CI Message
Brice Aldrich 858201c7 2019-07-10T21:45:22 Added support for PascaLIGO (#1947) This adds support for the [PascaLIGO language](http://ligolang.org).
Michael Schmidt 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.
RunDevelopment 0b48301e 2019-06-12T15:46:07 Resolved conflicts
Michael Schmidt 73d964be 2019-06-08T20:15:08 Added support for JQ language (#1896) This adds support for the JQ language.
Michael Schmidt a8164559 2019-06-02T14:36:05 C#: Added `cs` alias (#1899)
Michael Schmidt 5ad58a75 2019-05-28T18:25:04 LaTeX: Added TeX and ConTeXt alias (#1915) Added TeX and ConTeXt alias. Some minor formatting.
RunDevelopment 96044979 2019-05-15T21:06:59 Added shell session language
Michael Schmidt 5c1a6fb2 2019-03-24T19:05:03 Added alias tests (#1832) This adds tests which check the aliases specified in `components.json`.
Michael Schmidt 8d28c74c 2019-03-24T18:44:24 Added missing aliases (#1830) This adds some missing aliases.
Michael Schmidt 64baec3c 2019-03-24T18:39:32 Added `hs` alias for Haskell (#1831) This adds `hs` as an alias for Haskell.
Michal 30779976 2019-03-20T22:10:17 Added support for CMake language (#1820) This adds support for the [CMake](https://cmake.org/) language.
Michael Schmidt f2467488 2019-03-10T18:53:08 Django/Jinja2 improvements (#1800) This completely rewrites the Django language definition. It's now based on markup-templating.
Michael Schmidt c37c90df 2019-03-05T22:17:36 Added EJS (#1769) This adds the EJS (Embedded JavaScript templates) language to Prism.
Michael Schmidt 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).
Michael Schmidt 571704cb 2019-03-04T23:38:57 Regex language (#1682) This adds a Regex language that adds itself to a few languages which have regex literals.
Michael Schmidt 16f2ad06 2019-03-04T22:59:24 Added T4 Text Templates (#1699) This adds T4 Text Templates in both the C# and VB language variants.
Michael Schmidt 493d19ef 2019-02-28T21:01:31 Added doc comment highlighting (#1541) This adds support for JavaDoc, JSDoc, TSDoc, and PHPDoc.
Michael Schmidt bb628606 2019-02-28T20:19:45 Added JS Extras (#1743) This adds JS Extras, a few additional features for the JS language.
Michael Schmidt 64dc049d 2019-02-28T19:28:22 Added JSON5 language (#1744) This adds the JSON5 language to Prism.
Michael Schmidt 13e1c97d 2019-02-28T19:23:25 Added EBNF language (#1756) This adds the EBNF language.
Michael Schmidt 1df96c55 2019-02-28T19:18:05 Added BNF and RBNF languages (#1754) This adds the BNF and RBNF languages.
Michael Schmidt 6d98f0e7 2019-02-28T19:10:37 Added ANBF language (#1753) This adds a new language: ANBF (Augmented Backus–Naur form).
Michael Schmidt b5041cf9 2019-02-26T05:41:01 Fix JSONP support (#1745) This PR fixes that JSON did not support [JSONP](https://en.wikipedia.org/wiki/JSONP) callback functions. I also added a JSON example page.
Stephan Max b94b56c1 2019-01-15T15:54:35 Added the Nand2Tetris HDL language (#1710) This adds support for the [Nand2Tetris](https://www.nand2tetris.org/) HDL language.
Toby Wilds 7def8f5c 2019-01-03T23:52:27 Added N1QL language support (#1620) Adds support for[N1QL](https://www.couchbase.com/products/n1ql) for Couchbase.
Thomas Parisot 88434f7a 2019-01-01T15:52:38 Added `adoc` alias for AsciiDoc (#1685) This adds the `adoc` alias for the AsciiDoc language.
JeongHoon Byun (aka Outsider) c939df8e 2018-12-27T20:56:24 Added support for HCL (#1594) Adds support for HCL ([HashiCorp configuration language](https://github.com/hashicorp/hcl)).
Volk b48c012c 2018-12-15T20:32:22 Added Vala language (#1658) Adds support for the Vala language.
Michael Schmidt 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.
Michael Schmidt 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.
Michael Schmidt 6e0c6e86 2018-12-01T19:41:17 Corrected load order of Show Invisibles (#1612) Correct the load order of Show Invisibles, Autolinker, and Data-URI Highlight, so that Show Invisibles is loaded after the others. Details in #1609.
Michael Schmidt 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).
Starbeamrainbowlabs 38def334 2018-11-28T17:45:17 Add new language: CIL (#1593) Add support for the Common Intermediate Language from .NET.
Michael Schmidt 7155e60f 2018-11-28T14:04:11 Remove batch's shell alias (#1543) Both Batch and Bash have `shell` as their alias but only Bash has an alias title for `shell`.
Mark Shi e529edd8 2018-09-15T21:52:37 Add GameMaker Language support (#1551) GameMaker is a cross-platform game engine developed by YoYo Games.
Michael Schmidt 2fb66e04 2018-08-19T16:50:41 Added missing aliases to components.json (#1503) Also enforced `alias` before `owner`.
isaacs 8c2b71f1 2017-01-27T20:21:46 Add TAP component Includes build changes.
Golmote 84935acd 2018-05-26T15:36:24 Handle optional dependencies in `loadLanguages()` (#1417) * Add optional dependencies in `components.json` * Handle optional dependencies in `loadLanguages()` * Feedback
Golmote a0bfc84d 2018-05-26T11:59:14 Add `objectpascal` as an alias to `pascal` (see #1426)
Golmote e326cb03 2018-05-26T11:39:35 Add support for XQuery. Fix #1405 (#1411)
Guido Flohr 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
Golmote fa328bb1 2018-05-01T16:53:32 ASP.NET should require C#
Golmote b4509bf5 2018-04-11T08:58:28 Add support for Soy (Closure Template). Fix #1316 (#1387)
Golmote c28d8c5e 2018-04-11T08:53:56 Add support for WebAssembly. Fix #1140 and fix #1384 (#1386)
Golmote 6e0b20a4 2018-04-11T08:50:52 Add support for GEDCOM. Fix #899 (#1385)
Golmote c673ec29 2018-04-11T08:47:26 Add support for Visual Basic. Fix #985 (#1382)
Golmote 5a524f7e 2018-04-11T08:44:44 Add support for Velocity. Fix #1372 (#1378)
Juan Caicedo 46468f84 2018-04-05T12:24:22 Add support for Lisp (#1297) * add emacs * rename to elisp * add elisp to components * add comment test * add heading test * WIP string test * update string tests * test symbols in strings * test arguments * test quoted symbol * lisp-property test * splice test * add keyword test * test for declare * test interactive * boolean test * test numbers * test defvar * fix greedy defun regex * test defun * test lambda * test car * test punctuation * use var instead of const * remove arrow functions * flatten language structure * remove unnecessary escaping * add lisp and emacs * add lisp * fix template strings * minify lisp * add example elisp file * simplify number * don't mark other def as keywords * dont mark other def as keyword in defun * make lambda a keyword only at the beginning * restore single quotes in components * double quote in elisp * minify elisp * quote keys in components * rename punctuation test * add semicolons elisp * undo prettier changes to components.js * add lisp to components.json * rename elisp to lisp * fix components.json * add minified lisp file * rename example lisp file * move lisp to first position * explain null initialized properties in lisp file * remove trailing commas * put lisp first in example file * add ifee for lisp file * update lisp min file * update show language assets * add components index min file * add emacs-lisp alias * change title of lisp example file * undo theme change * combine regex for parens * remove min index * remove unneeded example html * remove doubled string test * capitalize lisp in components * change string theme to match master * build assets after adding lisp
Golmote 5f9c078a 2018-03-25T13:46:42 Make ERB, Handlebars, PHP and Smarty highlight properly in NodeJS (#1367)
Golmote de5a2b6f 2018-03-19T08:42:13 Add Tomorrow Night theme (#70) to components.json
Golmote ba60df09 2018-03-15T08:55:19 Core: Generate components.js from components.json and make it exportable to nodeJS. (#1354)
Golmote 3599e6a3 2018-03-11T12:11:51 Add support for PL/SQL (#1338) * Add support for PL/SQL (Fix #1149) * Merge gh-pages
Golmote e6213acb 2018-03-11T12:02:50 Add support for ERB. Fix #1318
Golmote 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.
Golmote 0bc98ac1 2018-03-07T21:31:40 Add support for ARFF (Fix #653) (#1327)
Tan-Vinh Nguyen f0b2c9e8 2018-03-04T15:43:39 Basic Syntax Highlighting for Liquid (#1326) * Basic Syntax Highlighting for Liquid [Liquid](http://shopify.github.io/liquid/), a template language by shopify It is used in Jekyll and add some basic highlighting * fix typo * Corrections and Improvements - move liquid above livescript - regnerate languages for show language plugin, after fixing typo - keywords - tablerow and endtablerow are keywords - add all keywords in test - add funtcions test * Minor Corrections comply to whitespace settings, use tabs instead of spaces for indentation
Golmote c07ca33c 2018-03-02T08:09:49 Fix code style in components.js
tkjone 8b4d3bdc 2018-03-02T02:05:40 Add Clojure (#1311) * Add Clojure * Remove global flags * Simplify comment match * Update string regex * Update keyword regex to use non-capturing group * Update boolean regex to use non-capturing group * Add intro to prism-clojure example HTML * Remove duplicated comment test * Fix thread-first macro highlight Moved the thread-first macro (->) further up the group capture in order to have it properly highlight... * Add thread-last macro support * Add `nil` to the boolean capture I would like to rename the `boolean` group to something else as I don't believe it is accurate now that `nil` is there. * Update number regex to support hexidecimal * Remove global from keyword object * Add clojure.min Forgot to compile with gulp in the last commit. my bad. * Resolve operator regex note in code review * Add "nil" test * Fix test error - (>=) (==) (<=) * Add more tests to keywords * Fix indentation * Remove duplicate test * Remove duplicates partner from tests * Fix indentation? * Fix indentation... * Fix indentation!!
Golmote 6bb6ee6a 2018-02-05T08:38:59 Fix alphabetical order in components
Mattias 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
Golmote a7665cb2 2018-01-31T22:53:29 Fix indentation in components.js
Andreas Lind 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
Golmote 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)
Ilias Van Peer d6da70e0 2018-01-16T08:40:39 Add Elm (elm-lang.org) support (#1174) * Add Elm (elm-lang.org) support * Simplify patterns and fix a few things inherited from haskell * Add example and minified file * Clean up comment pattern, drop redundant groups, tabs for indents
Ales Tsurko 84ed3edf 2018-01-02T10:58:10 add Io syntax (#1251) * add Io * Io: fix strings and operators, add tests * fix indent * add package-lock.json to gitignore * exclude gitignore and package.json changes * use tabs * io: apply requested changes * fix indent * fix indent * io: add example file
Cocoa Oikawa cf840be1 2017-12-19T14:46:30 Add support for IchigoJam BASIC (#1246) * Add support for IchigoJam BASIC Hi. This PR adds support for [IchigoJam](https://ichigojam.net/), which is a board that using its own BASIC language, so I was not extending this from `basic`, but submit as a standalone language. If there're anything necessary to change, please reply to me and I'll respond to you ASAP. * Requested modifications have been made. And after digging into the docs, IchigoJam actually use a very small set of ```basic``` and it adds a different set of markers to its own ```basic``` language, so I just keep this as a standalone language. * fixed the regexp for comment, number, operator and punctuation For IchigoJam, the space is not required to be appeared after the ```'``` or ```REM```. Add support for binary and hex numbers Specified for IchigoJam Add ```[``` and ```]``` for IchigoJam * Add example code for IchigoJam. * Add test-suite for IchigoJam * Add prism-ichigojam.min.js
Kevin Zurawel 2ece18b4 2017-12-16T10:35:23 Add support for 6502 assembly (#1245) * Add support for 6502 assembly * Address PR feedback
Golmote 05cc391a 2017-12-06T20:35:51 Run gulp and reorder components alphabetically
Tuna Celik 0fffa9df 2017-12-06T20:27:49 Xeora Language implementation (#1239)
Golmote d27b70dc 2017-11-11T23:42:44 Add support for Flow Fix #1216
Golmote 9969466b 2017-11-05T20:54:54 Fix alphabetical order in components.js
Golmote 89b86627 2017-10-19T21:34:03 Move Pug to alphabetical order in components.js
Jake Miller b5a09a8c 2017-10-10T15:08:02 Minor capitalization change for style
Jake Miller f680ee70 2017-10-10T15:05:49 Updated all instances of jade to be named pug.
Golmote 335b693d 2017-09-16T13:29:04 Add Arduino to components.js
Golmote 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
Golmote 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
Golmote 7ab4013a 2017-09-09T11:36:53 Merge branch 'Hyuchia-renpy-language' into gh-pages # Conflicts: # components/prism-apl.js # components/prism-apl.min.js # plugins/show-language/prism-show-language.js # plugins/show-language/prism-show-language.min.js
Jan S. (Milania1) 1a628b8d 2017-08-17T22:12:51 Add OpenCL language support
bsmith 98867cf0 2017-05-29T15:28:00 initial commit
Andreas Rohner ba64f8dc 2017-05-13T08:19:59 Add missing noCSS property for the Custom Class plugin
Golmote 88300817 2017-05-08T13:26:16 VB.Net: Add example + tests + fix regexps
Roman Miroshnychenko 345b1b2a 2017-01-28T11:08:49 Adds Django/Jinja2 language definition (#1085)
Diego Islas Ocampo df31330f 2016-12-29T11:05:48 Merge remote-tracking branch 'upstream/master' into renpy-language
Golmote 3cae6ce8 2016-11-19T12:16:31 Add support for Reason. Fix #1046
James DiGioia 07b81ac7 2016-11-08T20:08:49 Plugins: Toolbar & Copy to Clipboard (#891) * Add prism-toolbar plugin This plugin exposes a `registerButton` method, which other plugins can use to add buttons to the toolbar. Comes with styles. * Add demo file for toolbar plugin Registers a "Hello World!" tag with the toolbar. * Make `toolbar.registerButton` polymorphic This allows developers to provide either a callback or an object with a `text` string and an optional `onClick` function to create a new button. * Add Toolbar & Copy to Clipboard to components.js * Add Copy to Clipboard plugin * Switch `innerHTML` to `textContent` This ensures additional HTML can't be passed to the toolbar via the `text` property, ensuring a consistent display for the buttons. * Use `call` to bind `this` to the `onClick` method This provides access to the clicked element, which is what `this` is usually bound to on event listeners. * Add hover animation to toolbar * Add drop shadow to toolbar buttons * Add `clipboard` to `optionalDependencies` This will install Clipboard.js when installing from `npm`, but won't fail the build if the installation of Clipboard.js fails. * Load Clipboard.js from CDN if not present * Display plugin code using data-src * Recompile prism-toolbar * Update Show Languages to be a Toolbar button Show Languages now registers a callback with the toolbar plugin to return an element with the language in it. * Add basic HTML API & documentation The Toolbar will now be able to read a `data-label` attribute and add it to the code snippet. * Switch a -> button when only providing onClick Also adds a `url` property which creats an anchor tag and sets the href. Adds some styles to override the button defaults. * Add support for data-url to create anchor tag This allows the HTML API to create links in the Toolbar. * Update toolbar to allow order controlled via HTML Uses a data-attribute on the `body` tag to update the order, should the user choose to do so. * Allow template element to provide content to label This provides one of several options a user can implement in order to get a custom button. Also fixes some bugs in the documentation. * Fix bug when combined with the autoloader plugin The autoloader will rehighlight the element after the language arrives. This means the complete hook can run multiple times. Without a check, multiple toolbars can get added to an element.
thesave dfc19413 2016-11-09T01:57:46 Add support for the Jolie language (#1014) * Added component for the Jolie language * Added Jolie among the supported components * update for merge - revised jolie component - added tests - added code example - minified with `gulp` * fixes * fixes * fixed Jolie html file example and highlight for punctuation * fixed indentation in test html file and added comma as punctuation
dvkndn e9355cc4 2016-08-15T02:43:09 add prefix feature for custom class plugin
dvkndn 820c7b79 2016-08-14T22:53:33 Merge branch 'gh-pages' of https://github.com/PrismJS/prism into gh-pages
Golmote bdca61bf 2016-07-14T12:01:52 Merge pull request #996 from Golmote/data-uri-highlight Data-URI Highlight plugin Fix #485
Golmote 5f1b3826 2016-07-10T13:56:08 Data-URI Highlight plugin
Golmote 2b0cc8ab 2016-07-04T21:06:44 Xojo does not need to require Basic
Golmote 5e62f023 2016-07-04T20:13:26 Add support for Xojo. Fix #898
Golmote 65619f7e 2016-07-03T03:20:53 Add support for Ada (generic). Closes #949
Golmote 9c5ffb5e 2016-06-27T01:26:39 Merge remote-tracking branch 'official/gh-pages' into prism-livescript Conflicts: plugins/show-language/prism-show-language.js plugins/show-language/prism-show-language.min.js
Golmote 9cfc8cb2 2016-06-18T19:39:36 Add support for LiveScript
Golmote 2607dcd9 2016-06-18T14:46:44 Add support for .properties files
Golmote bfb559bf 2016-06-11T01:17:24 Add support for GraphQL
thien 863f5f18 2016-05-06T21:17:47 add plugin custom class name
Andreas Rohner 3eec2b75 2016-04-30T11:49:08 Add some simple test cases for the protobuf language This patch adds basic test cases for the protobuf language and fixes some whitespace issues. It also adds the missing requirement to the clike language to components.js.