Lightweight, robust, elegant syntax highlighting.
Go to file
Golmote 7741755a85 Release 1.8.4 2017-11-05 17:31:35 +01:00
components Core: Provide a way to load Prism from inside a Worker without listening to messages. (#1188) 2017-11-05 14:24:19 +01:00
examples Minor spelling differences for style 2017-10-10 15:11:20 +11:00
img Optimize images (#1007) 2016-07-29 13:37:25 -04:00
plugins Add Python builtin function highlighting (#1205) 2017-10-21 10:06:35 +02:00
templates Changed the text in the header. Way overdue, as Prism’s popularity has way surpassed that of Dabblet 2016-02-13 15:26:22 -05:00
tests MATLAB: Make strings greedy + handle line feeds better 2017-10-22 15:02:28 +02:00
themes Scroll 'Coy' background with contents (#1163) 2017-09-09 12:43:25 +02:00
vendor Add a way to download all grammars as a Zip directly from the Autoloader plugin page 2016-06-18 15:45:25 +02:00
.editorconfig Added basic .editorconfig 2015-09-27 10:04:21 +02:00
.gitattributes Add .gitattributes to prevent line ending changes in test files 2015-08-18 08:17:01 +02:00
.gitignore Remove yarn.lock (#1098) 2017-09-09 12:32:43 +02:00
.npmignore .npmignore: Unignore components.js (#1108) 2017-03-09 17:34:33 -05:00
.travis.yml Set up auto npm publishing 2016-12-05 16:02:54 +01:00
CHANGELOG.md Release 1.8.4 2017-11-05 17:31:35 +01:00
CNAME Added CNAME file 2012-07-31 11:59:25 +12:00
LICENSE Fixing to initial copyright year 2016-01-18 21:53:13 +05:30
README.md Update README.md 2015-08-18 23:54:14 +02:00
bower.json Ignore tests directory in bower.json 2016-04-06 03:56:45 +02:00
code.js Fix broken heading links. 2015-12-30 18:36:44 +08:00
components.js Move Pug to alphabetical order in components.js 2017-10-19 21:34:03 +02:00
composer.json Add Composer support (#648) 2017-09-09 11:15:47 +02:00
download.html Merge pull request #561 from Golmote/prism-check-all 2015-09-03 22:54:45 +02:00
download.js Add after-property to allow ordering of plugins 2016-02-26 15:29:36 +01:00
examples.html Added some language aliases. 2015-09-03 23:39:16 +02:00
examples.js Fixed issues pointed out in previous pull request 2016-04-08 12:27:12 +02:00
extending.html Document the newly added greedy-flag 2016-04-30 09:48:39 +02:00
faq.html link to index for basic usage - fixes #945 2016-05-01 09:32:03 +01:00
favicon.png Optimize images (#1007) 2016-07-29 13:37:25 -04:00
gulpfile.js Add property 'aliasTitles' to components.js 2016-02-17 15:26:01 +01:00
index.html Merge branch 'RemoveIE8' of https://github.com/zeitgeist87/prism into zeitgeist87-RemoveIE8 2017-09-09 12:05:55 +02:00
logo.svg Website: remove width and height on logo.svg, so it becomes scalable. Close #1005 2017-09-09 12:12:00 +02:00
package.json Release 1.8.4 2017-11-05 17:31:35 +01:00
prefixfree.min.js Styling and docs changes 2012-07-31 18:14:55 +12:00
prism.js Core: Provide a way to load Prism from inside a Worker without listening to messages. (#1188) 2017-11-05 14:24:19 +01:00
style.css Use screenshot instead of text logo for U.S. Web Design Standards on homepage. (#785) 2015-10-14 07:53:41 +02:00
test-suite.html Added TestCase.runTestsWithHooks + add missing tests. Updated documentation for test suite. 2016-07-11 20:37:47 +02:00
test.html Improve test drive page usability. Fix #591 2015-06-12 21:43:31 +02:00
utopia.js Commit updated line changes 2015-08-18 08:22:40 +02:00

README.md

Prism

Prism is a lightweight, robust, elegant syntax highlighting library. It's a spin-off project from Dabblet.

You can learn more on http://prismjs.com/.

Why another syntax highlighter?: http://lea.verou.me/2012/07/introducing-prism-an-awesome-new-syntax-highlighter/#more-1841

Contribute to Prism!

Prism depends on community contributions to expand and cover a wider array of use cases. If you like it, considering giving back by sending a pull request. Here are a few tips:

  • Read the documentation. Prism was designed to be extensible.
  • Do not edit prism.js, its just the version of Prism used by the Prism website and is built automatically. Limit your changes to the unminified files in the components/ folder. The minified files are also generated automatically.
  • The build system uses gulp to minify the files and build prism.js. Having gulp installed, you just need to run the command gulp.
  • Please follow the code conventions used in the files already. For example, I use tabs for indentation and spaces for alignment. Opening braces are on the same line, closing braces on their own line regardless of construct. There is a space before the opening brace. etc etc.
  • Please try to err towards more smaller PRs rather than few huge PRs. If a PR includes changes I want to merge and changes I don't, handling it becomes difficult.
  • My time is very limited these days, so it might take a long time to review longer PRs (short ones are usually merged very quickly), especially those modifying the Prism Core. This doesn't mean your PR is rejected.
  • If you contribute a new language definition, you will be responsible for handling bug reports about that language definition.
  • If you add a new language definition, theme or plugin, you need to add it to components.js as well, so that it becomes available to the download build page.

Thank you so much for contributing!!