components.js


Log

Author Commit Date CI Message
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)
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
Golmote 1a4ff7ac 2015-10-11T10:38:10 Add support for Lua
Golmote 2d08fa90 2015-10-10T21:32:45 Add support for Icon
Golmote b938d2ce 2015-10-10T16:45:02 Merge branch 'gh-pages' into prism-previewer-angle Conflicts: components.js
Golmote 88173de6 2015-10-10T16:42:49 Merge pull request #790 from Golmote/prism-previewer-time Plugin: time previewer
Golmote 6679e735 2015-10-10T16:38:02 Add support for PARI/GP
Golmote 68159d5b 2015-10-10T03:57:25 Add support for AsciiDoc
Golmote 9a63483e 2015-10-07T00:38:04 Merge pull request #783 from Golmote/prism-previewer-gradient Plugin: gradient previewer
Golmote 198bc99a 2015-10-07T00:28:30 Add support for Nix
Golmote 6babaad4 2015-10-06T07:53:35 Merge pull request #781 from Golmote/prism-batch Prism batch
Golmote 2fcc7d05 2015-10-05T09:14:05 Plugin: angle previewer
Golmote 752650e0 2015-10-03T09:13:04 Plugin: time previewer
Andreas Rohner 9acaaa15 2015-10-02T14:54:17 Remove Clike dependency from Bash The Bash language is actually very different from Clike. Only 'boolean', 'operator' and 'punctuation' are shared between them. 'operator' and 'punctuation' should be changed in the future, because Bash actually has slightly different operators. Since they share almost nothing, it makes sense to remove the dependency. This patch copies 'boolean', 'operator' and 'punctuation' from Clike, but doesn't change them. This patch also fixes a typo and adds the missing built-in keyword `let`. `let` is not in the POSIX-standard, but Bash and some other shells support it.
Golmote 1ebac75a 2015-09-30T08:54:44 Plugin: gradient previewer
Golmote 92072584 2015-09-28T18:41:56 Add plugin Previewer: Easing to components
Golmote 93a53c77 2015-09-28T09:19:42 Merge branch 'gh-pages' into prism-batch
Golmote eab5b06e 2015-09-20T16:00:59 Add support for Batch (Fix #398)
TSUYUSATO Kitsune 4943abf4 2015-09-26T23:45:28 Add Crystal language definition
Golmote 69ea994e 2015-09-24T09:03:36 Add support for vim. Closes #777
Golmote e62c88ed 2015-09-23T08:41:41 Add nginx to components, fixed basic highlighting, add a few tests
Golmote 211a41ce 2015-09-22T20:04:36 Merge pull request #771 from Golmote/prism-autoit Add support for AutoIt. Fix #453
Golmote 391b4406 2015-09-22T20:03:02 Merge branch 'gh-pages' into prism-keep-markup Conflicts: components.js
Golmote b9a48c04 2015-09-22T20:00:15 Merge branch 'gh-pages' into prism-autoload Conflicts: components.js
Golmote 3f386732 2015-09-17T08:56:50 Add support for AutoIt. Fix #453
Golmote aec312b1 2015-09-16T22:14:22 Merge branch 'gh-pages' into prism-keep-markup Conflicts: components.js
Golmote 6f69da62 2015-09-16T22:08:29 Keep Markup Plugin. Fix #495, fix #579
Golmote 795eb996 2015-09-16T08:22:27 Verilog: Rename to "Verilog", optimize string regexp, don't use captures unless needed
Golmote 44a11c2b 2015-09-16T07:55:58 Merge pull request #640 from a-rey/gh-pages adding system verilog language
Golmote 7feb135e 2015-09-16T07:53:42 Merge pull request #764 from Golmote/prism-bison Add support for Bison
Tzu-ping Chung e642a222 2015-09-15T13:32:16 Add diff syntax definition
Golmote 29760d77 2015-09-14T07:58:28 Add pages for previewer base and previewer color plugins
Golmote c75826aa 2015-09-12T11:59:27 Plugin: color previewer + base for more previewers
Golmote 804b9da0 2015-09-11T07:48:58 Run gulp + removed uneeded array in components
Golmote 75b0328b 2015-09-11T07:47:25 Merge pull request #636 from dellagustin/add_abap_language Add ABAP language
Golmote 42094eee 2015-09-10T09:09:03 Autoloader Plugin
Golmote e336007f 2015-09-09T21:06:24 Add support for Bison
Golmote d1d971fa 2015-09-09T08:29:35 Merge branch 'gh-pages' into prism-prolog Conflicts: components.js
Golmote 73e16f37 2015-09-09T08:17:21 Merge branch 'gh-pages' into prism-processing Conflicts: components.js
Golmote ae2fbb61 2015-09-09T07:39:00 Merge branch 'gh-pages' into prism-ocaml
Golmote e1dd5cc9 2015-09-08T19:11:06 Merge branch 'gh-pages' into prism-pure
Golmote d1f90a11 2015-09-08T08:19:09 Merge branch 'gh-pages' into prism-q Conflicts: components.js
Golmote 82638e75 2015-09-08T07:34:56 Merge branch 'gh-pages' into prism-j
Golmote ea61184a 2015-09-07T21:56:23 Merge branch 'gh-pages' into prism-nim
Golmote fd324de9 2015-09-07T21:35:58 Merge branch 'gh-pages' into prism-monkey Conflicts: components.js
Golmote 8e93d55b 2015-09-07T08:14:00 Merge branch 'gh-pages' into prism-basic
Golmote 8af0b91a 2015-09-07T08:02:38 Merge branch 'gh-pages' into prism-mizar Conflicts: components.js
Golmote 95720443 2015-09-07T07:33:04 Merge branch 'gh-pages' into prism-mel
Golmote 6c0bc91c 2015-09-06T19:05:51 Merge branch 'gh-pages' into prism-inform7
Golmote 92de71d7 2015-09-06T18:37:33 Merge branch 'gh-pages' into prism-glsl
Golmote 4d3f20e4 2015-09-06T11:26:39 Merge branch 'gh-pages' into prism-d
Golmote 9019fce5 2015-09-06T08:12:40 Merge branch 'gh-pages' into prism-textile Conflicts: components.js
Golmote 125e91ff 2015-09-05T18:52:14 Merge branch 'gh-pages' of https://github.com/temnoregg/prism into gh-pages + fixes + add example and tests Conflicts: components.js