components.js


Log

Author Commit Date CI Message
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.
Andreas Rohner f081b905 2016-04-29T16:39:46 Rename proto language into protobuf and add it to components.js
wayward710 b25a7515 2016-03-31T03:34:23 Added Bro support to Prism
Andreas Rohner 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.
Lea Verou 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 :/
Lea Verou 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.
Andreas Rohner 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.
Lea Verou ef533229 2016-02-06T15:06:29 Merge pull request #847 from zeitgeist87/WhitespaceNormalizer Whitespace normalizer plugin
Andreas Rohner 0e87ff0a 2016-01-27T11:55:16 Add solarized light theme to the list of themes and update auto-generated files generated by gulp.
Andreas Rohner 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.
Andreas Rohner cf7291e7 2016-01-05T19:09:28 Remove default option for JSON language
Lea Verou 106c8178 2015-12-30T10:32:08 Merge pull request #370 from CupOfTea696/gh-pages JSON Language
CupOfTea696 ad2fcd01 2015-12-29T15:54:51 JSON Fixes
Chris Wells 83789062 2015-11-29T20:27:14 Add Command Line plugin.
Golmote e8a31a50 2015-10-26T08:16:29 Merge pull request #814 from Golmote/prism-kotlin Add support for Kotlin
Golmote 81933ee8 2015-10-22T07:17:56 Merge pull request #813 from Golmote/prism-puppet Add support for Puppet configuration
Golmote f5db3463 2015-10-22T07:17:38 Merge pull request #812 from Golmote/prism-roboconf Add support for Roboconf
Golmote eb7aa969 2015-10-22T07:12:42 Add support for Kotlin
Golmote e7a623c5 2015-10-21T06:35:03 Merge branch 'gh-pages' into prism-haxe Conflicts: plugins/autoloader/prism-autoloader.js plugins/autoloader/prism-autoloader.min.js
Golmote 77c0b061 2015-10-21T06:32:15 Merge branch 'gh-pages' into prism-parser Conflicts: components.js
Golmote b7b1b6a9 2015-10-17T10:37:52 Merge branch 'gh-pages' into prism-oz Conflicts: components.js
Golmote a36bc4ae 2015-10-17T10:36:03 Merge pull request #804 from Golmote/prism-lua Add support for Lua
Golmote b43c5f3f 2015-10-17T10:35:30 Merge pull request #803 from Golmote/prism-icon Add support for Icon
Golmote 0b4e1d3d 2015-10-17T10:32:59 Add support for Puppet configuration
Golmote c9b40810 2015-10-16T08:50:33 Add support for Roboconf
Golmote 188c75cc 2015-10-16T08:00:22 Merge branch 'gh-pages' into prism-parigp Conflicts: plugins/show-language/prism-show-language.js plugins/show-language/prism-show-language.min.js
Golmote 6803ca03 2015-10-16T07:58:39 Merge pull request #800 from Golmote/prism-asciidoc Add support for AsciiDoc
Golmote e25da0da 2015-10-15T08:55:07 Add support for Haxe
Golmote 9b275c8f 2015-10-13T21:15:41 Merge pull request #795 from Golmote/prism-nix Add support for Nix
Golmote 2ba763e0 2015-10-13T21:08:49 Add support for Parser
Golmote d5ace6c2 2015-10-11T13:45:28 Add support for Oz