Lightweight, robust, elegant syntax highlighting.
Go to file
Golmote 22df673c47 Release 1.6.0 2016-12-03 14:11:25 +01:00
components Merge branch 'gh-pages' of https://github.com/PrismJS/prism into gh-pages 2016-12-03 11:52:48 +01:00
examples Add support for Reason. Fix #1046 2016-11-19 12:16:31 +01:00
img Optimize images (#1007) 2016-07-29 13:37:25 -04:00
plugins Reduce risk of XSS (#1051) 2016-11-20 12:52:54 +01: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 Add support for Reason. Fix #1046 2016-11-19 12:16:31 +01:00
themes Remove unneeded prefixed CSS (#989) 2016-07-19 11:20:18 -04: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 Add yarn.lock (#1035) 2016-10-23 15:25:50 -04:00
.npmignore Added .npmignore 2014-04-21 14:46:07 +01:00
.travis.yml Added travis.yml to run tests in travis 2015-07-26 14:32:00 +02:00
CHANGELOG.md Release 1.6.0 2016-12-03 14:11:25 +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 Add support for Reason. Fix #1046 2016-11-19 12:16:31 +01: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 HTTPS links to twitter.com and w3.org + Google Analytics to HTTPS 2016-04-28 18:07:32 +09:00
logo.svg Restore `viewBox` to Prism logo (#1002) 2016-07-19 18:40:14 -04:00
package.json Release 1.6.0 2016-12-03 14:11:25 +01:00
prefixfree.min.js Styling and docs changes 2012-07-31 18:14:55 +12:00
prism.js Merge branch 'gh-pages' of https://github.com/PrismJS/prism into gh-pages 2016-12-03 11:52:48 +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!!