Lightweight, robust, elegant syntax highlighting.
Go to file
Michael Schmidt 15983d5297
Added support for Solution (.sln) files (#2213)
This adds support for VS Solution files.

https://docs.microsoft.com/en-us/visualstudio/extensibility/internals/solution-dot-sln-file?view=vs-2019
2020-02-23 14:12:37 +01:00
.github/ISSUE_TEMPLATE Issue template improvements (#2069) 2019-09-26 16:46:43 +02:00
components Added support for Solution (.sln) files (#2213) 2020-02-23 14:12:37 +01:00
examples Added support for Solution (.sln) files (#2213) 2020-02-23 14:12:37 +01:00
gulpfile.js Updated changelog for 1.19.0 (#2169) 2020-01-13 08:37:43 -05:00
img Website: Added Coy bug to the known failures page. (#2170) 2020-02-18 22:17:05 +01:00
plugins Added support for Solution (.sln) files (#2213) 2020-02-23 14:12:37 +01:00
scripts Standardized dependency logic implementation (#1998) 2019-12-16 12:49:21 +01:00
templates Added @mAAdhaTTah and @RunDevelopment to credits and footer 2019-10-05 13:53:01 +02:00
tests Added support for Solution (.sln) files (#2213) 2020-02-23 14:12:37 +01:00
themes Added missing `.token` selector (#2161) 2020-01-06 20:09:40 +01:00
.editorconfig Set default indentation size (#1516) 2018-08-19 10:56:44 -04:00
.gitattributes Add .gitattributes to prevent line ending changes in test files 2015-08-18 08:17:01 +02:00
.gitignore add Io syntax (#1251) 2018-01-02 08:58:10 +01:00
.npmignore Added .github folder to npm ignore (#2052) 2019-09-10 13:38:22 +02:00
.travis.yml gulp: Use `async` functions & drop testing on Node v6 (#1783) 2019-07-17 21:22:24 +02:00
CHANGELOG.md Fix date in CHANGELOG 2020-01-13 08:39:18 -05: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 Readme: Links now use HTTPS if available (#2045) 2019-09-05 18:19:56 +02:00
bower.json Ignore tests directory in bower.json 2016-04-06 03:56:45 +02:00
components.js Added support for Solution (.sln) files (#2213) 2020-02-23 14:12:37 +01:00
components.json Added support for Solution (.sln) files (#2213) 2020-02-23 14:12:37 +01:00
composer.json Name in composer.json set to lowercase (#1824) 2019-03-24 12:42:17 -04:00
dependencies.js Dependencies: Improved `getLoader` (#2151) 2020-01-05 19:46:54 +01:00
download.html Standardized dependency logic implementation (#1998) 2019-12-16 12:49:21 +01:00
examples.html Added scripts directory (#1781) 2019-03-11 00:32:45 +01:00
extending.html Added documentation for new dependency API (#2141) 2020-01-05 20:03:41 +01:00
faq.html Website: FAQ update (#1977) 2019-09-03 17:43:51 +02:00
favicon.png Optimize images (#1007) 2016-07-29 13:37:25 -04:00
index.html Website: Added Coy bug to the known failures page. (#2170) 2020-02-18 22:17:05 +01:00
known-failures.html Website: Added Coy bug to the known failures page. (#2170) 2020-02-18 22:17:05 +01: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-lock.json Add Concurnas support (#2206) 2020-02-14 14:55:32 +01:00
package.json 1.19.0 2020-01-13 08:39:40 -05:00
prism.js Core: Faster Token.stringify (#2171) 2020-02-19 12:26:45 +01:00
style.css Added plugin descriptions to plugin list (#2076) 2019-09-30 19:43:33 +02:00
test-suite.html npm: Fixed `test` script (#1809) 2019-03-14 18:54:40 +01:00
test.html Improved test page performance for Chromium (#2020) 2019-08-29 16:37:13 +02:00

README.md

Prism

Build Status npm

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

You can learn more on prismjs.com.

Why another syntax highlighter?

More themes for Prism!

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.json as well and rebuild Prism by running gulp, so that it becomes available to the download build page. For new languages, please also add a few tests and an example in the examples/ folder.

Thank you so much for contributing!!

Translations

  • 中文说明