Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
D
dbp
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • credit_data
  • dbp
  • Wiki
    • Node_modules
    • Prismjs
  • CHANGELOG

Last edited by leo Oct 21, 2019
Page history

CHANGELOG

Prism Changelog

1.17.1 (2019-07-21)

Other

  • Infrastructure
    • Add .DS_Store to npmignore c2229ec2

1.17.0 (2019-07-21)

New components

  • DNS zone file (#1961) bb84f98c
  • JQ (#1896) 73d964be
  • JS Templates: Syntax highlighting inside tagged template literals (#1931) c8844286
  • LilyPond (#1967) 5d992fc5
  • PascaLIGO (#1947) 858201c7
  • PC-Axis (#1940) 473f7fbd
  • Shell session (#1892) 96044979
  • Splunk SPL (#1962) c93c066b

New plugins

  • Diff Highlight: Syntax highlighting inside diff blocks (#1889) e7702ae1

Updated components

  • Bash
    • Major improvements (#1443) 363281b3
  • C#
    • Added cs alias (#1899) a8164559
  • C++
    • Fixed number pattern (#1887) 3de29e72
  • CSS
    • Extended url inside (#1874) f0a10669
    • Removed unnecessary flag and modifier (#1875) 74050c68
  • CSS Extras
    • Added even & odd keywords to n-th pattern (#1872) 5e5a3e00
  • F#
    • Improved character literals (#1956) d58d2aeb
  • JavaScript
    • Fixed escaped template interpolation (#1931) c8844286
    • Added support for private fields (#1950) 7bd08327
    • Added support for numeric separators (#1895) 6068bf18
    • Increased bracket count of interpolation expressions in template strings (#1845) c13d6e7d
    • Added support for the s regex flag (#1846) 9e164935
    • Formatting: Added missing semicolon (#1856) e2683959
  • JSON
    • Kinda fixed comment issue (#1853) cbe05ec3
  • Julia
    • Added struct keyword (#1941) feb1b6f5
    • Highlight Inf and NaN as constants (#1921) 2141129f
    • Added in keyword (#1918) feb3187f
  • LaTeX
    • Added TeX and ConTeXt alias (#1915) 5ad58a75
    • Added support for $$ equations 6f53f749
  • Markdown
    • Markdown: Added support for auto-loading code block languages (#1898) 05823e88
    • Improved URLs (#1955) b9ec6fd8
    • Added support for nested bold and italic expressions (#1897) 11903721
    • Added support for tables (#1848) cedb8e84
  • Perl
    • Added return keyword (#1943) 2f39de97
  • Protocol Buffers
    • Full support for PB2 and PB3 syntax + numerous other improvements (#1948) de10bd1d
  • reST (reStructuredText)
    • Fixed exponentially backtracking pattern (#1986) 8b5d67a3
  • Rust
    • Added async and await keywords. (#1882) 4faa3314
    • Improved punctuation and operators (#1839) a42b1557
  • Sass (Scss)
    • Fixed exponential url pattern (#1938) 4b6b6e8b
  • Scheme
    • Added support for rational number literals (#1964) e8811d22
  • TOML
    • Minor improvements (#1917) 3e181241
  • Visual Basic
    • Added support for interpolation strings (#1971) 4a2c90c1

Updated plugins

  • Autolinker
    • Improved component path guessing (#1928) 452d5c7d
    • Improved URL regex (#1842) eb28b62b
  • Autoloader
    • Fixed and improved callbacks (#1935) b19f512f
  • Command Line
    • Fix for uncaught errors for empty 'commandLine' object. (#1862) c24831b5
  • Copy to Clipboard Button
    • Switch anchor to button (#1926) 79880197
  • Custom Class
    • Added mapper functions for language specific transformations (#1873) acceb3b5
  • Line Highlight
    • Batching DOM read/writes to avoid reflows (#1865) 632ce00c
  • Toolbar
    • Added className option for toolbar items (#1951) 5ab28bbe
    • Set opacity to 1 when focus is within (#1927) 0b1662dd

Updated themes

  • Funky
    • Fixed typo (#1960) 7d056591

Other

  • README: Added npm downloads badge (#1934) d673d701
  • README: Minor changes (#1857) 77e403cb
  • Clearer description for the highlighting bug report template (#1850) 2f9c9261
  • More language examples (#1917) 3e181241
  • Core
    • Removed env.elements from before-highlightall hook (#1968) 9d9e2ca4
    • Made language-none the default language (#1858) fd691c52
    • Removed parent from the wrap hook's environment (#1837) 65a4e894
  • Infrastructure
    • gulp: Split gulpfile.js and expanded changes task (#1835) 033c5ad8
    • gulp: JSON formatting for partly generated files (#1933) d4373f3a
    • gulp: Use async functions & drop testing on Node v6 (#1783) 0dd44d53
    • Tests: lookbehind test for patterns (#1890) 3ba786cd
    • Tests: Added test for empty regexes (#1847) c1e6a7fd
  • Website
    • Added tutorial for using PrismJS with React (#1979) f1e16c7b
    • Update footer's GitHub repository URL and capitalisation of "GitHub" (#1983) bab744a6
    • Added known failures page (#1876) 36a5fa0e
    • Added basic usage for CDNs (#1924) 922ec555
    • New tutorial for Drupal (#1859) d2089d83
    • Updated website page styles to not interfere with themes (#1952) b6543853
    • Download page: Improved performance for Chromium-based browsers (#1907) 11f18e36
    • Download page: Fixed Edge's word wrap (#1920) 5d191b92
    • Examples page: Minor improvements (#1919) a16d4a25
    • Extending page: Fixed typo + new alias section (#1949) 24c8e717
    • Extending page: Added "Creating a new language definition" section (#1925) ddf81233
    • Test page: Use prism-core.js instead of prism.js (#1908) 0853e694
    • Copy to clipboard: Fixed typo (#1869) 59d4323f
    • JSONP Highlight: Fixed examples (#1877) f8ae465d
    • Line numbers: Fixed typo on webpage (#1838) 0f16eb87

1.16.0 (2019-03-24)

New components

  • ANBF (#1753) 6d98f0e7
  • BNF & RBNF (#1754) 1df96c55
  • CIL (#1593) 38def334
  • CMake (#1820) 30779976
  • Doc comment (#1541) 493d19ef
  • EBNF (#1756) 13e1c97d
  • EJS (#1769) c37c90df
  • G-code (#1572) 2288c25e
  • GameMaker Language (#1551) e529edd8
  • HCL (#1594) c939df8e
  • Java stack trace (#1520) 4a8219a4
  • JavaScript Extras (#1743) bb628606
  • JSON5 (#1744) 64dc049d
  • N1QL (#1620) 7def8f5c
  • Nand To Tetris HDL (#1710) b94b56c1
  • Regex (#1682) 571704cb
  • T4 (#1699) 16f2ad06
  • TOML (#1488) 5b6ad70d
  • Vala (#1658) b48c012c

Updated components

  • Fixed dependencies of Pug and Pure (#1759) c9a32674
  • Add file extensions support for major languages (#1478) 0c8f6504
  • Fixed patterns which can match the empty string (#1775) 86dd3e42
  • More variables for better code compression (#1489) bc53e093
  • Added missing aliases (#1830) 8d28c74c
  • Replaced all occurrences of new RegExp with RegExp (#1493) 44fed4d3
  • Added missing aliases to components.json (#1503) 2fb66e04
  • Apacheconf
    • Apache config: Minor improvements + new keyword (#1823) a91be7b2
  • AsciiDoc
    • Added adoc alias for AsciiDoc (#1685) 88434f7a
  • Bash
    • Add additional commands to bash (#1577) a2230c38
    • Added yarn add to bash functions (#1731) 3a32cb75
    • Added pnpm function to Bash (#1734) fccfb98d
  • Batch
    • Remove batch's shell alias (#1543) 7155e60f
  • C
    • Improve C language (#1697) 7eccea5c
  • C-like
    • Simplify function pattern of C-like language (#1552) b520e1b6
  • C/C++/Java
    • Operator fixes (#1528) 7af8f8be
  • C#
    • Improvements to C# operator and punctuation (#1532) 3b1e0916
  • CSS
    • Fix tokenizing !important (#1585) c1d6cb85
    • Added the comma to the list of CSS punctuation 7ea2ff28
    • CSS: Comma punctuation (#1632) 1b812386
    • Reuse CSS selector pattern in CSS Extras (#1637) e2f2fd19
    • Fixed CSS extra variable (#1649) 9de47d3a
    • Identify CSS units and variables (#1450) 5fcee966
    • Allow multiline CSS at-rules (#1676) 4f6f3c7d
    • CSS: Highlight attribute selector (#1671) 245b59d4
    • CSS: Selectors can contain any string (#1638) a2d445d0
    • CSS extras: Highlighting for pseudo class arguments (#1650) 70a40414
  • Django
    • Django/Jinja2 improvements (#1800) f2467488
  • F#
    • Chars can only contain one character (#1570) f96b083a
    • Improve F# (#1573) 00bfc969
  • GraphQL
    • Improved field highlighting for GraphQL (#1711) 44aeffb9
    • Added GraphQL improvements and tests (#1788) b2298b12
  • Haskell
    • Added hs alias for Haskell (#1831) 64baec3c
  • HTTP
    • Improved HTTP content highlighting (#1598) 1b75da90
  • Ini
    • Add support for # comments to INI language (#1730) baf6bb0c
  • Java
    • Add Java 10 support (#1549) 8c981a22
    • Added module keywords to Java. (#1655) 6e250a5f
    • Improve Java (#1474) 81bd8f0b
  • JavaScript
    • Fix regex for catch and finally (#1527) ebd1b9a6
    • Highlighting of supposed classes and functions (#1482) c40f6047
    • Added support for JS BigInt literals (#1542) 2b62e57b
    • Fixed lowercase supposed class names (#1544) a47c05ad
    • Fixes regex for JS examples (#1591) b41fb8f1
    • Improve regex detection in JS (#1473) 2a4758ab
    • Identify JavaScript function parameters (#1446) 0cc8c56a
    • Improved JavaScript parameter recognization (#1722) 57a92035
    • Make undefined a keyword in JS (#1740) d9fa29a8
    • Fix function-variable in JS (#1739) bfbea4d6
    • Improved JS constant pattern (#1737) 7bcec584
    • Improved JS function pattern (#1736) 8378ac83
    • JS: Fixed variables named "async" (#1738) 3560c643
    • JS: Keyword fix (#1808) f2d8e1c7
  • JSON / JSONP
    • Fix bugs in JSON language (#1479) 74fe81c6
    • Adds support for comments in JSON (#1595) 8720b3e6
    • Cleaned up JSON (#1596) da474c77
    • Added keyword alias to JSON's null (#1733) eee06649
    • Fix JSONP support (#1745) b5041cf9
    • Fixed JSON/JSONP examples (#1765) ae4842db
  • JSX
    • React component tags are styled as classes in JSX (#1519) 3e1a9a3d
    • Support JSX/TSX class-name with dot (#1725) 4362e42c
  • Less
    • Remove useless insertBefore in LESS (#1629) 86d31793
  • Lisp
    • Fix Lisp exponential string pattern (#1763) 5bd182c0)
  • Markdown
    • Added strike support to markdown (#1563) 9d2fddc2
    • Fixed Markdown headers (#1557) c6584290
    • Add support for code blocks in Markdown (#1562) b0717e70
    • Markdown: The 'md' alias is now recognized by hooks (#1771) 8ca3d65b
  • Markup
    • Decouple XML from Markup (#1603) 0030a4ef
    • Fix for markup attributes (#1752) c3862a24
    • Markup: Added support for CSS and JS inside of CDATAs (#1660) 57127701
    • Markup addInline improvements (#1798) af67c32e
  • Markup Templating
    • Markup-templating improvements (#1653) b62e282b
  • nginx
    • Add new keywords to nginx (#1587) 0d73f7f5
  • PHP
    • Update PHP keywords (#1690) 55fb0f8e
    • Improve recognition of constants in PHP (#1688) f1026b4b
    • Made false, true, and null constants in PHP (#1694) 439e3bd7
    • PHP: Fixed closing tag issue (#1652) 289ddd9b
  • Python
    • Operator keywords are now keywords (#1617) 1d1fb800
    • Add decorator support to Python (#1639) 2577b6e6
    • Improvements to Python F-strings and string prefixes (#1642) a69c2b62
  • Reason
    • Added additional operators to Reason (#1648) 8b1bb469
  • Ruby
    • Consistent Ruby method highlighting (#1523) 72775919
    • Ruby/ERB: Fixed block comments (#1768) c805f859
  • Rust
    • Add missing keywords (#1634) 3590edde
  • SAS
    • Added new SAS keywords (#1784) 3b396ef5
  • Scheme
    • Fix function without arguments in scheme language (#1463) 12a827e7
    • Scheme improvements (#1556) 225dd3f7
    • Fixed operator-like functions in Scheme (#1467) f8c8add2
    • Scheme: Minor improvements (#1814) 191830f2
  • SCSS
    • Fixed that selector pattern can take exponential time (#1499) 0f75d9d4
    • Move SCSS property definition (#1633) 0536fb14
    • Add keyword alias for SCSS' null (#1735) bd0378f0
  • Smalltalk
    • Allowed empty strings and comments (#1747) 5fd7577a
  • Smarty
    • Removed useless insertBefore call in Smarty (#1677) bc49c361
  • SQL
    • Added support for quote escapes to SQL strings (#1500) a59a7926
    • SQL Quoted variables are now greedy (#1510) 42d119a2
  • TypeScript
    • Enhance definitions in TypeScript component (#1522) 11695629
  • YAML
    • Allow YAML strings to have trailing comments (#1602) 1c5f28a9

Updated plugins

  • Better class name detection for plugins (#1772) c9762c6f
  • Autolinker
    • Fix Autolinker url-decoding all tokens (#1723) 8cf20d49
  • Autoloader
    • Resolved variable name clash (#1568) bfa5a8d9
    • Autoloader: Fixed the directory of scripts (#1828) fd4c764f
    • Autoloader: Added support for aliases (#1829) 52889b5b
  • Command Line
    • Fixed class regex for Command Line plugin (#1566) 9f6e5026
  • File Highlight
    • Prevent double-loading & add scope to File Highlight (#1586) 10239c14
  • JSONP Highlight
    • Cleanup JSONP highlight code (#1674) 28489698
    • Fix typos & other issues in JSONP docs (#1672) cd058a91
    • JSONP highlight: Fixed minified adapter names (#1793) 5dd8f916
  • Keep Markup
    • Add unit tests to the Keep Markup plugin (#1646) a944c418
  • Line Numbers
    • Added inheritance for the line-numbers class (#1799) 14be7489
  • Previewers
    • Fixed Previewers bug #1496 (#1497) 4b56f3c1
  • Show Invisibles
    • Updated styles of show invisibles (#1607) 2ba62268
    • Corrected load order of Show Invisibles (#1612) 6e0c6e86
    • Show invisibles inside tokens (#1610) 1090b253
  • Show Language
    • Show Language plugin alias support and improvements (#1683) 4c66d72c
  • Toolbar
    • Toolbar: Minor improvements (#1818) 3ad47047

Updated themes

  • Normalized the font-size of pre and code (#1791) 878ef295
  • Coy
    • Correct typo (#1508) c322fc80

Other changes

  • Core
    • insertBefore now correctly updates references (#1531) 9dfec340
    • Invoke callback after after-highlight hook (#1588) bfbe4464
    • Improve Prism.util.type performance (#1545) 2864fe24
    • Remove unused insertBefore overload (#1631) 39686e12
    • Ignore duplicates in insertBefore (#1628) d33d259c
    • Remove the Prism.tokenize language parameter (#1654) fbf0b094
    • Call insert-before hook properly (#1709) 393ab164
    • Improved languages.DFS and util.clone (#1506) 152a68ef
    • Core: Avoid redeclaring variables in util.clone (#1778) b06f532f
    • Made prism-core a little more editor friendly (#1776) bac09f0a
    • Applied Array.isArray (#1804) 11d0f75e
  • Infrastructure
    • Linkify changelog more + add missing PR references 2a100db7
    • Set default indentation size (#1516) e63d1597
    • Add travis repo badge to readme (#1561) 716923f4
    • Update README.md (#1553) 6d1a2c61
    • Mention Prism Themes in README (#1625) 5db04656
    • Fixed CHANGELOG.md (#1707) b1f8a65d (#1704) 66d2104a
    • Change tested NodeJS versions (#1651) 6ec71e0b
    • Inline regex source with gulp (#1537) e894fc89 (#1716) 217a6ea4
    • Improve gulp error messages with pump (#1741) 671f4ca0
    • Update gulp to version 4.0.0 (#1779) 06627f6a
    • gulp: Refactoring (#1780) 6c9fe257
    • npm: Updated all dependencies (#1742) 9d908d5a
    • Tests: Pretty-printed token stream (#1801) 9ea6d600
    • Refactored tests (#1795) 832a9643
    • Added issue templates (#1805) dedb475f
    • npm: Fixed test script (#1809) bc649dfa
    • Add command to generate CHANGELOG 212666d3
    • Name in composer.json set to lowercase (#1824) 4f78f1d6
    • Added alias tests (#1832) 5c1a6fb2
    • Travis: Fail when changed files are detected (#1819) 66b44e3b
    • Tests: Additional checks for Prism functions (#1803) c3e74ea3
    • Adjusted .npmignore (#1834) 29a30c62
  • Website
    • Add Python triple-quoted strings "known failure" (#1449) 334c7bca
    • Updated index.html to fix broken instructions (#1462) 7418dfdd
    • Improve download page typography (#1484) b1c2f4df
    • Fixed peer dependencies in download page (#1491) 9d15ff6e
    • Fixed empty link in extending (#1507) 74916d48
    • Display language aliases (#1626) 654b527b
    • Clean up Previewers' page (#1630) b0d1823c
    • Updated website table of contents styles (#1681) efdd96c3
    • Added new third-party tutorial for using Prism in Gutenberg (#1701) ff9ccbe5
    • Remove dead tutorial (#1702) e2d3bc7e
    • Fix downloads page fetching from GitHub(#1684) dbd3555e
    • Remove parentheses from download page (#1627) 2ce0666d
    • Line Numbers plugin instructions clarifications (#1719) 00f4f04f
    • Fixed Toolbar plugin example (#1726) 5311ca32
    • Test page: Show tokens option (#1757) 729cb28b
    • Some encouragement for visitors of PrismJS.com to request new languages (#1760) ea769e0b
    • Docs: Added missing parameter (#1774) 18f2921d
    • More persistent test page (#1529) 3100fa31
    • Added scripts directory (#1781) 439ea1ee
    • Fixed download page (#1811) 77c57446

1.15.0 (2018-06-16)

New components

  • Template Tookit 2 (#1418) [e063992]
  • XQuery (#1411) [e326cb0]
  • TAP (#1430) [8c2b71f]

Updated components

  • HTTP
    • Absolute path is a valid request uri (#1388) [f6e81cb]
  • Kotlin
    • Add keywords of Kotlin and modify it's number pattern. (#1389) [1bf73b0]
    • Add typealias keyword (#1437) [a21fdee]
  • JavaScript
    • Improve Regexp pattern [5b043cf]
    • Add support for one level of nesting inside template strings. Fix #1397 [db2d0eb]
  • Elixir
    • Elixir: Fix attributes consuming punctuation. Fix #1392 [dac0485]
  • Bash
    • Change reserved keyword reference (#1396) [b94f01f]
  • PowerShell
    • Allow for one level of nesting in expressions inside strings. Fix #1407 [9272d6f]
  • JSX
    • Allow for two levels of nesting inside JSX tags. Fix #1408 [f1cd7c5]
    • Add support for fragments short syntax. Fix #1421 [38ce121]
  • Pascal
    • Add objectpascal as an alias to pascal (#1426) [a0bfc84]
  • Swift
    • Fix Swift 'protocol' keyword (#1440) [081e318]

Updated plugins

  • File Highlight
    • Fix issue causing the Download button to show up on every code blocks. [cd22499]
    • Simplify lang regex on File Highlight plugin (#1399) [7bc9a4a]
  • Show Language
    • Don't process language if block language not set (#1410) [c111869]
  • Autoloader
    • ASP.NET should require C# [fa328bb]
  • Line Numbers
    • Make line-numbers styles more specific (#1434, #1435) [9ee4f54]

Updated themes

  • Add .token.class-name to rest of themes (#1360) [f356dfe]

Other changes

  • Website
    • Site now loads over HTTPS!
    • Use HTTPS / canonical URLs (#1390) [95146c8]
    • Added Angular tutorial link [c436a7c]
    • Use rel="icon" instead of rel="shortcut icon" (#1398) [d95f8fb]
    • Fix Download page not handling multiple dependencies when from Redownload URL [c2ff248]
    • Update documentation for node & webpack usage [1e99e96]
  • Handle optional dependencies in loadLanguages() (#1417) [84935ac]
  • Add Chinese translation [f2b1964]

1.14.0 (2018-04-11)

New components

  • GEDCOM (#1385) [6e0b20a]
  • Lisp (#1297) [46468f8]
  • Markup Templating (#1367) [5f9c078]
  • Soy (#1387) [b4509bf]
  • Velocity (#1378) [5a524f7]
  • Visual Basic (#1382) [c673ec2]
  • WebAssembly (#1386) [c28d8c5]

Updated components

  • Bash:
    • Add curl to the list of common functions. Close #1160 [1bfc084]
  • C-like:
    • Make single-line comments greedy. Fix #1337. Make sure #1340 stays fixed. [571f2c5]
  • C#:
    • More generic class-name highlighting. Fix #1365 [a6837d2]
    • More specific class-name highlighting. Fix #1371 [0a95f69]
  • Eiffel:
    • Fix verbatim strings. Fix #1379 [04df41b]
  • Elixir
    • Make regexps greedy, remove comment hacks. Update known failures and tests. [e93d61f]
  • ERB:
    • Make highlighting work properly in NodeJS (#1367) [5f9c078]
  • Fortran:
    • Make single-line comments greedy. Update known failures and tests. [c083b78]
  • Handlebars:
    • Make highlighting work properly in NodeJS (#1367) [5f9c078]
  • Java:
    • Add support for generics. Fix #1351 [a5cf302]
  • JavaScript:
    • Add support for constants. Fix #1348 [9084481]
    • Improve Regex matching [172d351]
  • JSX:
    • Fix highlighting of empty objects. Fix #1364 [b26bbb8]
  • Monkey:
    • Make comments greedy. Update known failures and tests. [d7b2b43]
  • PHP:
    • Make highlighting work properly in NodeJS (#1367) [5f9c078]
  • Puppet:
    • Make heredoc, comments, regexps and strings greedy. Update known failures and tests. [0c139d1]
  • Q:
    • Make comments greedy. Update known failures and tests. [a0f5081]
  • Ruby:
    • Make multi-line comments greedy, remove single-line comment hack. Update known failures and tests. [b0e34fb]
  • SQL:
    • Add missing keywords. Fix #1374 [238b195]

Updated plugins

  • Command Line:
    • Command Line: Allow specifying output prefix using data-filter-output attribute. (#856) [094d546]
  • File Highlight:
    • Add option to provide a download button, when used with the Toolbar plugin. Fix #1030 [9f22952]

Updated themes

  • Default:
    • Reach AA contrast ratio level (#1296) [8aea939]

Other changes

  • Website: Remove broken third-party tutorials from homepage [0efd6e1]
  • Docs: Mention loadLanguages() function on homepage in the nodeJS section. Close #972, close #593 [4a14d20]
  • Core: Greedy patterns should always be matched against the full string. Fix #1355 [294efaa]
  • Crystal: Update known failures. [e1d2d42]
  • D: Update known failures and tests. [13d9991]
  • Markdown: Update known failures. [5b6c76d]
  • Matlab: Update known failures. [259b6fc]
  • Website: Remove non-existent anchor to failures. Reword on homepage to make is less misleading. [8c0911a]
  • Website: Add link to Keep Markup plugin in FAQ [e8cb6d4]
  • Test suite: Memory leak in vm.runInNewContext() seems fixed. Revert [9a4b6fa] to drastically improve tests execution time. [9bceece, 7c7602b]
  • Gulp: Don't minify components/index.js [689227b]
  • Website: Fix theme selection on Download page, when theme is in query string or hash. [b4d3063]
  • Update JSPM config to also include unminified components. Close #995 [218f160]
  • Core: Fix support for language alias containing dash - [659ea31]

1.13.0 (2018-03-21)

New components

  • ERB [e6213ac]
  • PL/SQL (#1338) [3599e6a]

Updated components

  • JSX:
    • Add support for plain text inside tags (#1357) [2b8321d]
  • Markup:
    • Make tags greedy. Fix #1356 [af834be]
  • Powershell:
    • Add lookbehind to fix function interpolation inside strings. Fix #1361 [d2c026e]
  • Rust:
    • Improve char pattern so that lifetime annotations are matched better. Fix #1353 [efdccbf]

Updated themes

  • Default:
    • Add color for class names [8572474]
  • Coy:
    • Inherit pre's height on code, so it does not break on Download page. [c6c7fd1]

Other changes

  • Website: Auto-generate example headers [c3ed5b5]
  • Core: Allow cloning of circular structures. (#1345) [f90d555]
  • Core: Generate components.js from components.json and make it exportable to nodeJS. (#1354) [ba60df0]
  • Website: Improve appearance of theme selector [0460cad]
  • Website: Check stored theme by default + link both theme selectors together. Close #1038 [212dd4e]
  • Tests: Use the new components.js file directly [0e1a8b7]
  • Update .npmignore Close #1274 [a52319a]
  • Add a loadLanguages() function for easy component loading on NodeJS (#1359) [a5331a6]

1.12.2 (2018-03-08)

Other changes

  • Test against NodeJS 4, 6, 8 and 9 (#1329) [97b7d0a]
  • Stop testing against NodeJS 0.10 and 0.12 [df01b1b]

1.12.1 (2018-03-08)

Updated components

  • C-like:
    • Revert [b98e5b9] to fix #1340. Reopened #1337. [cebacdf]
  • JSX:
    • Allow for one level of nested curly braces inside tag attribute value. Fix #1335 [05bf67d]
  • Ruby:
    • Ensure module syntax is not confused with symbols. Fix #1336 [31a2a69]

1.12.0 (2018-03-07)

New components

  • ARFF (#1327) [0bc98ac]
  • Clojure (#1311) [8b4d3bd]
  • Liquid (#1326) [f0b2c9e]

Updated components

  • Bash:
    • Add shell as an alias (#1321) [67e16a2]
    • Add support for quoted command substitution. Fix #1287 [63fc215]
  • C#:
    • Add "dotnet" alias. [405867c]
  • C-like:
    • Change order of comment patterns and make multi-line one greedy. Fix #1337 [b98e5b9]
  • NSIS:
    • Add support for NSIS 3.03 (#1288) [bd1e98b]
    • Add missing NSIS commands (#1289) [ad2948f]
  • PHP:
    • Add support for string interpolation inside double-quoted strings. Fix #1146 [9f1f8d6]
    • Add support for Heredoc and Nowdoc strings [5d7223c]
    • Fix shell-comment failure now that strings are greedy [ad25d22]
  • PowerShell:
    • Add support for two levels of nested brackets inside namespace pattern. Fixes #1317 [3bc3e9c]
  • Ruby:
    • Add keywords "protected", "private" and "public" [4593837]
  • Rust:
    • Add support for lifetime-annotation and => operator. Fix #1339 [926f6f8]
  • Scheme:
    • Don't highlight first number of a list as a function. Fix #1331 [51bff80]
  • SQL:
    • Add missing keywords and functions, fix numbers [de29d4a]

Updated plugins

  • Autolinker:
    • Allow more chars in query string and hash to match more URLs. Fix #1142 [109bd6f]
  • Copy to Clipboard:
    • Bump ClipboardJS to 2.0.0 and remove hack (#1314) [e9f410e]
  • Toolbar:
    • Prevent scrolling toolbar with content (#1305, #1314) [84eeb89]
  • Unescaped Markup:
    • Use msMatchesSelector for IE11 and below. Fix #1302 [c246c1a]
  • WebPlatform Docs:
    • WebPlatform Docs plugin: Fix links. Fixes #1290 [7a9dbe0]

Other changes

  • Fix Autoloader's demo page [3dddac9]
  • Download page: Use hash instead of query-string for redownload URL. Fix #1263 [b03c02a]
  • Core: Don't thow an error if lookbehing is used without anything matching. [e0cd47f]
  • Docs: Fix link to the <code> element specification in HTML5 [a84263f]
  • Docs: Mention support for lang-xxxx class. Close #1312 [a9e76db]
  • Docs: Add note on async parameter to clarify the requirement of using a single bundled file. Closes #1249 [eba0235]

1.11.0 (2018-02-05)

New components

  • Content-Security-Policy (CSP) (#1275) [b08cae5]
  • HTTP Public-Key-Pins (HPKP) (#1275) [b08cae5]
  • HTTP String-Transport-Security (HSTS) (#1275) [b08cae5]
  • React TSX (#1280) [fbe82b8]

Updated components

  • C++:
    • Add C++ platform-independent types (#1271) [3da238f]
  • TypeScript:
    • Improve typescript with builtins (#1277) [5de1b1f]

Other changes

  • Fix passing of non-enumerable Error properties from the child test runner (#1276) [38df653]

1.10.0 (2018-01-17)

New components

  • 6502 Assembly (#1245) [2ece18b]
  • Elm (#1174) [d6da70e]
  • IchigoJam BASIC (#1246) [cf840be]
  • Io (#1251) [84ed3ed]

Updated components

  • BASIC:
    • Make strings greedy [60114d0]
  • C++:
    • Add C++11 raw string feature (#1254) [71595be]

Updated plugins

  • Autoloader:
    • Add support for data-autoloader-path (#1242) [39360d6]
  • Previewers:
    • New plugin combining previous plugins Previewer: Base, Previewer: Angle, Previewer: Color, Previewer: Easing, Previewer: Gradient and Previewer: Time. (#1244) [28e4b4c]
  • Unescaped Markup:
    • Make it work with any language (#1265) [7bcdae7]

Other changes

  • Add attribute style in package.json (#1256) [a9b6785]

1.9.0 (2017-12-06)

New components

  • Flow [d27b70d]

Updated components

  • CSS:
    • Unicode characters in CSS properties (#1227) [f234ea4]
  • JSX:
    • JSX: Improve highlighting support. Fix #1235 and #1236 [f41c5cd]
  • Markup:
    • Make CSS and JS inclusions in Markup greedy. Fix #1240 [7dc1e45]
  • PHP:
    • Add support for multi-line strings. Fix #1233 [9a542a0]

Updated plugins

  • Copy to clipboard:
    • Fix test for native Clipboard. Fix #1241 [e7b5e82]
    • Copy to clipboard: Update to v1.7.1. Fix #1220 [a1b85e3, af50e44]
  • Line highlight:
    • Fixes to compatibility of line number and line higlight plugins (#1194) [e63058f, 3842a91]
  • Unescaped Markup:
    • Fix ambiguity in documentation by improving examples. Fix #1197 [924784a]

Other changes

  • Allow any element being root instead of document. (#1230) [69f2e2c, 6e50d44]
  • Coy Theme: The 'height' element makes code blocks the height of the browser canvas. (#1224) [ac219d7]
  • Download page: Fix implicitly declared variable [f986551]
  • Download page: Add version number at the beginning of the generated files. Fix #788 [928790d]

1.8.4 (2017-11-05)

Updated components

  • ABAP:
    • Regexp optimisation [e7b411e]
  • ActionScript:
    • Fix XML regex + optimise [75d00d7]
  • Ada:
    • Regexp simplification [e881fe3]
  • Apacheconf:
    • Regexp optimisation [a065e61]
  • APL:
    • Regexp simplification [33297c4]
  • AppleScript:
    • Regexp optimisation [d879f36]
  • Arduino:
    • Don't use captures if not needed [16b338f]
  • ASP.NET:
    • Regexp optimisation [438926c]
  • AutoHotkey:
    • Regexp simplification + don't use captures if not needed [5edfd2f]
  • Bash:
    • Regexp optimisation and simplification [75b9b29]
  • Bro:
    • Regexp simplification + don't use captures if not needed [d4b9003]
  • C:
    • Regexp optimisation + don't use captures if not needed [f61d487]
  • C++:
    • Fix operator regexp + regexp simplification + don't use captures if not needed [ffeb26e]
  • C#:
    • Remove duplicates in keywords + regexp optimisation + don't use captures if not needed [d28d178]
  • C-like:
    • Regexp simplification + don't use captures if not needed [918e0ff]
  • CoffeeScript:
    • Regexp optimisation + don't use captures if not needed [5895978]
  • Crystal:
    • Remove trailing comma [16979a3]
  • CSS:
    • Regexp simplification + don't use captures if not needed + handle multi-line style attributes [43d9f36]
  • CSS Extras:
    • Regexp simplification [134ed70]
  • D:
    • Regexp optimisation [fbe39c9]
  • Dart:
    • Regexp optimisation [f24e919]
  • Django:
    • Regexp optimisation [a95c51d]
  • Docker:
    • Regexp optimisation [27f99ff]
  • Eiffel:
    • Regexp optimisation [b7cdea2]
  • Elixir:
    • Regexp optimisation + uniform behavior between ~r and ~s [5d12e80]
  • Erlang:
    • Regexp optimisation [7547f83]
  • F#:
    • Regexp optimisation + don't use captures if not needed [7753fc4]
  • Gherkin:
    • Regexp optimisation + don't use captures if not needed + added explanation comment on table-body regexp [f26197a]
  • Git:
    • Regexp optimisation [b9483b9]
  • GLSL:
    • Regexp optimisation [e66d21b]
  • Go:
    • Regexp optimisation + don't use captures if not needed [88caabb]
  • GraphQL:
    • Regexp optimisation and simplification [2474f06]
  • Groovy:
    • Regexp optimisation + don't use captures if not needed [e74e00c]
  • Haml:
    • Regexp optimisation + don't use captures if not needed + fix typo in comment [23e3b43]
  • Handlebars:
    • Regexp optimisation + don't use captures if not needed [09dbfce]
  • Haskell:
    • Regexp simplification + don't use captures if not needed [f11390a]
  • HTTP:
    • Regexp simplification + don't use captures if not needed [37ef24e]
  • Icon:
    • Regexp optimisation [9cf64a0]
  • J:
    • Regexp simplification [de15150]
  • Java:
    • Don't use captures if not needed [96b35c8]
  • JavaScript:
    • Regexp optimisation + don't use captures if not needed [93d4002]
  • Jolie:
    • Regexp optimisation + don't use captures if not needed + remove duplicates in keywords [a491f9e]
  • JSON:
    • Make strings greedy, remove negative look-ahead for ":". Fix #1204 [98acd2d]
    • Regexp optimisation + don't use captures if not needed [8fc1b03]
  • JSX:
    • Regexp optimisation + handle spread operator as a whole [28de4e2]
  • Julia:
    • Regexp optimisation and simplification [12684c0]
  • Keyman:
    • Regexp optimisation + don't use captures if not needed [9726087]
  • Kotlin:
    • Regexp simplification [12ff8dc]
  • LaTeX:
    • Regexp optimisation and simplification [aa426b0]
  • LiveScript:
    • Make interpolated strings greedy + fix variable and identifier regexps [c581049]
  • LOLCODE:
    • Don't use captures if not needed [52903af]
  • Makefile:
    • Regexp optimisation [20ae2e5]
  • Markdown:
    • Don't use captures if not needed [f489a1e]
  • Markup:
    • Regexp optimisation + fix punctuation inside attr-value [ea380c6]
  • MATLAB:
    • Make strings greedy + handle line feeds better [4cd4f01]
  • Monkey:
    • Don't use captures if not needed [7f47140]
  • N4JS:
    • Don't use captures if not needed [2d3f9df]
  • NASM:
    • Regexp optimisation and simplification + don't use captures if not needed [9937428]
  • nginx:
    • Remove trailing comma + remove duplicates in keywords [c6e7195]
  • NSIS:
    • Regexp optimisation + don't use captures if not needed [beeb107]
  • Objective-C:
    • Don't use captures if not needed [9be0f88]
  • OCaml:
    • Regexp simplification [5f5f38c]
  • OpenCL:
    • Don't use captures if not needed [5e70f1d]
  • Oz:
    • Fix atom regexp [9320e92]
  • PARI/GP:
    • Regexp optimisation [2c7b59b]
  • Parser:
    • Regexp simplification [569d511]
  • Perl:
    • Regexp optimisation and simplification + don't use captures if not needed [0fe4cf6]
  • PHP:
    • Don't use captures if not needed Golmote [5235f18]
  • PHP Extras:
    • Add word boundary after global keywords + don't use captures if not needed [9049a2a]
  • PowerShell:
    • Regexp optimisation + don't use captures if not needed [0d05957]
  • Processing:
    • Regexp simplification [8110d38]
  • .properties:
    • Regexp optimisation [678b621]
  • Protocol Buffers:
    • Don't use captures if not needed [3e256d8]
  • Pug:
    • Don't use captures if not needed [76dc925]
  • Pure:
    • Make inline-lang greedy [92318b0]
  • Python:
    • Add Python builtin function highlighting (#1205) [2169c99]
    • Python: Add highlighting to functions with space between name and parentheses (#1207) [3badd8a]
    • Make triple-quoted strings greedy + regexp optimisation and simplification [f09f9f5]
  • Qore:
    • Regexp simplification [69459f0]
  • R:
    • Regexp optimisation [06a9da4]
  • Reason:
    • Regexp optimisation + don't use capture if not needed [19d79b4]
  • Ren'py:
    • Make strings greedy + don't use captures if not needed [91d84d9]
  • reST:
    • Regexp simplification + don't use captures if not needed [1a8b3e9]
  • Rip:
    • Regexp optimisation [d7f0ee8]
  • Ruby:
    • Regexp optimisation and simplification + don't use captures if not needed [4902ed4]
  • Rust:
    • Regexp optimisation and simplification + don't use captures if not needed [cc9d874]
  • Sass:
    • Regexp simplification Golmote [165d957]
  • Scala:
    • Regexp optimisation Golmote [5f50c12]
  • Scheme:
    • Regexp optimisation [bd19b04]
  • SCSS:
    • Regexp simplification [c60b7d4]
  • Smalltalk:
    • Regexp simplification [41a2c76]
  • Smarty:
    • Regexp optimisation and simplification [e169be9]
  • SQL:
    • Regexp optimisation [a6244a4]
  • Stylus:
    • Regexp optimisation [df9506c]
  • Swift:
    • Don't use captures if not needed [a2d737a]
  • Tcl:
    • Regexp simplification + don't use captures if not needed [f0b8a33]
  • Textile:
    • Regexp optimisation + don't use captures if not needed [08139ad]
  • Twig:
    • Regexp optimisation and simplification + don't use captures if not needed [0b10fd0]
  • TypeScript:
    • Don't use captures if not needed [e296caf]
  • Verilog:
    • Regexp simplification [1b24b34]
  • VHDL:
    • Regexp optimisation and simplification [7af36df]
  • vim:
    • Remove duplicates in keywords [700505e]
  • Wiki markup:
    • Fix escaping consistency [1fd690d]
  • YAML:
    • Regexp optimisation + don't use captures if not needed [1fd690d]

Other changes

  • Remove comments spellcheck for AMP validation (#1106) [de996d7]
  • Prevent error from throwing when element does not have a parentNode in highlightElement. [c33be19]
  • Provide a way to load Prism from inside a Worker without listening to messages. (#1188) [d09982d]

1.8.3 (2017-10-19)

Other changes

  • Fix inclusion tests for Pug [955c2ab]

1.8.2 (2017-10-19)

Updated components

  • Jade:
    • Jade has been renamed to Pug (#1201) [bcfef7c]
  • JavaScript:
    • Better highlighting of functions (#1190) [8ee2cd3]

Update plugins

  • Copy to clipboard:
    • Fix error occurring when using in Chrome 61+ (#1206) [b41d571]
  • Show invisibles:
    • Prevent error when using with Autoloader plugin (#1195) [ed8bdb5]

1.8.1 (2017-09-16)

Other changes

  • Add Arduino to components.js [290a3c6]

1.8.0 (2017-09-16)

New components

  • Arduino (#1184) [edf2454]
  • OpenCL (#1175) [131e8fa]

Updated plugins

  • Autolinker:
    • Silently catch any error thrown by decodeURIComponent. Fixes #1186 [2e43fcf]

1.7.0 (2017-09-09)

New components

  • Django/Jinja2 (#1085) [345b1b2]
  • N4JS (#1141) [eaa8ebb]
  • Ren'py (#658) [7ab4013]
  • VB.Net (#1122) [5400651]

Updated components

  • APL:
    • Add left shoe underbar and right shoe underbar (#1072) [12238c5]
    • Update prism-apl.js (#1126) [a5f3cdb]
  • C:
    • Add more keywords and constants for C. (#1029) [43a388e]
  • C#:
    • Fix wrong highlighting when three slashes appear inside string. Fix #1091 [dfb6f17]
  • C-like:
    • Add support for unclosed block comments. Close #828 [3426ed1]
  • Crystal:
    • Update Crystal keywords (#1092) [125bff1]
  • CSS Extras:
    • Support CSS #RRGGBBAA (#1139) [07a6806]
  • Docker:
    • Add dockerfile alias for docker language (#1164) [601c47f]
    • Update the list of keywords for dockerfiles (#1180) [f0d73e0]
  • Eiffel:
    • Add class-name highlighting for Eiffel (#471) [cd03587]
  • Handlebars:
    • Check for possible pre-existing marker strings in Handlebars [7a1a404]
  • JavaScript:
    • Properly match every operator as a whole token. Fix #1133 [9f649fb]
    • Allows uppercase prefixes in JS number literals (#1151) [d4ee904]
    • Reduced backtracking in regex pattern. Fix #1159 [ac09e97]
  • JSON:
    • Fix property and string patterns performance. Fix #1080 [0ca1353]
  • JSX:
    • JSX spread operator break. Fixes #1061 (#1094) [561bceb]
    • Fix highlighting of attributes containing spaces [867ea42]
    • Improved performance for tags (when not matching) Fix #1152 [b0fe103]
  • LOLCODE:
    • Make strings greedy Golmote [1a5e7a4]
  • Markup:
    • Support HTML entities in attribute values (#1143) [1d5047d]
  • NSIS:
    • Update patterns (#1033) [01a59d8]
    • Add support for NSIS 3.02 (#1169) [393b5f7]
  • PHP:
    • Fix the PHP language (#1100) [1453fa7]
    • Check for possible pre-existing marker strings in PHP [36bc560]
  • Ruby:
    • Fix slash regex performance. Fix #1083 [a708730]
    • Add support for =begin =end comments. Manual merge of #1121. [62cdaf8]
  • Smarty:
    • Check for possible pre-existing marker strings in Smarty [5df26e2]
  • TypeScript:
    • Update typescript keywords (#1064) [52020a0]
    • Chmod -x prism-typescript component (#1145) [afe0542]
  • YAML:
    • Make strings greedy (partial fix for #1075) [565a2cc]

Updated plugins

  • Autolinker:
    • Fixed an rendering issue for encoded urls (#1173) [abc007f]
  • Custom Class:
    • Add missing noCSS property for the Custom Class plugin [ba64f8d]
    • Added a default for classMap. Fixes #1137. (#1157) [5400af9]
  • Keep Markup:
    • Store highlightedCode after reinserting markup. Fix #1127 [6df2ceb]
  • Line Highlight:
    • Cleanup left-over line-highlight tags before other plugins run [79b723d]
    • Avoid conflict between line-highlight and other plugins [224fdb8]
  • Line Numbers:
    • Support soft wrap for line numbers plugin (#584) [849f1d6]
    • Plugins fixes (unescaped-markup, line-numbers) (#1012) [3fb7cf8]
  • Normalize Whitespace:
    • Add Node.js support for the normalize-whitespace plugin [6c7dae2]
  • Unescaped Markup:
    • Plugins fixes (unescaped-markup, line-numbers) (#1012) [3fb7cf8]

Updated themes

  • Coy:
    • Scroll 'Coy' background with contents (#1163) [310990b]

Other changes

  • Initial implementation of manual highlighting (#1087) [bafc4cb]
  • Remove dead link in Third-party tutorials section. Fixes #1028 [dffadc6]
  • Most languages now use the greedy flag for better highlighting [7549ecc]
  • .npmignore: Unignore components.js (#1108) [1f699e7]
  • Run before-highlight and after-highlight hooks even when no grammar is found. Fix #1134 [70cb472]
  • Replace [\w\W] with [\s\S] and [0-9] with \d in regexes (#1107) [8aa2cc4]
  • Fix corner cases for the greedy flag (#1095) [6530709]
  • Add Third Party Tutorial (#1156) [c34e57b]
  • Add Composer support (#648) [2989633]
  • Remove IE8 plugin (#992) [25788eb]
  • Website: remove width and height on logo.svg, so it becomes scalable. Close #1005 [0621ff7]
  • Remove yarn.lock (#1098) [11eed25]

1.6.0 (2016-12-03)

New components

  • .properties (#980) [be6219a]
  • Ada (#949) [65619f7]
  • GraphQL (#971) [e018087]
  • Jolie (#1014) [dfc1941]
  • LiveScript (#982) [62e258c]
  • Reason (Fixes #1046) [3cae6ce]
  • Xojo (#994) [0224b7c]

Updated components

  • APL:
    • Add iota underbar (#1024) [3c5c89a, ac21d33]
  • AsciiDoc:
    • Optimized block regexps to prevent struggling on large files. Fixes #1001. [1a86d34]
  • Bash:
    • Add npm to function list (#969) [912bdfe]
  • CSS:
    • Make CSS strings greedy. Fix #1013. [e57e26d]
  • CSS Extras:
    • Match attribute inside selectors [13fed76]
  • Groovy:
    • Fix order of decoding entities in groovy. Fixes #1049 (#1050) [d75da8e]
  • Ini:
    • Remove important token in ini definition (#1047) [fe8ad8b]
  • JavaScript:
    • Add exponentiation & spread/rest operator (#991) [b2de65a, 268d01e]
  • JSON:
    • JSON: Fixed issues with properties and strings + added tests. Fix #1025 [25a541d]
  • Markup:
    • Allow for dots in Markup tag names, but not in HTML tags included in Textile. Fixes #888. [31ea66b]
    • Make doctype case-insensitive (#1009) [3dd7219]
  • NSIS:
    • Updated patterns (#1032) [76ba1b8]
  • PHP:
    • Make comments greedy. Fix #197 [318aab3]
  • PowerShell:
    • Fix highlighting of empty comments (#977) [4fda477]
  • Puppet:
    • Fix over-greedy regexp detection (#978) [105be25]
  • Ruby:
    • Fix typo Fload to Float in prism-ruby.js (#1023) [22cb018]
    • Make strings greedy. Fixes #1048 [8b0520a]
  • SCSS:
    • Alias statement as keyword. Fix #246 [fd09391]
    • Highlight variables inside selectors and properties. [d6b5c2f]
    • Highlight parent selector [8f5f1fa]
  • TypeScript:
    • Add missing from keyword to typescript & set ts as alias. (#1042) [cba78f3]

New plugins

  • Copy to Clipboard (#891) [07b81ac]
  • Custom Class (#950) [a0bd686]
  • Data-URI Highlight (#996) [bdca61b]
  • Toolbar (#891) [07b81ac]

Updated plugins

  • Autoloader:
    • Updated documentation for Autoloader plugin [b4f3423]
    • Download all grammars as a zip from Autoloader plugin page (#981) [0d0a007, 5c815d3]
    • Removed duplicated script on Autoloader plugin page [9671996]
    • Don't try to load "none" component. Fix #1000 [f89b0b9]
  • WPD:
    • Fix at-rule detection + don't process if language is not handled [2626728]

Other changes

  • Improvement to greedy-flag (#967) [500121b, 9893489]
  • Add setTimeout fallback for requestAnimationFrame. Fixes #987. (#988) [c9bdcd3]
  • Added aria-hidden attributes on elements created by the Line Highlight and Line Numbers plugins. Fixes #574. [e5587a7]
  • Don't insert space before ">" when there is no attributes [3dc8c9e]
  • Added missing hooks-related tests for AsciiDoc, Groovy, Handlebars, Markup, PHP and Smarty [c1a0c1b]
  • Fix issue when using Line numbers plugin and Normalise whitespace plugin together with Handlebars, PHP or Smarty. Fix #1018, #997, #935. Revert #998. [86aa3d2]
  • Optimized logo (#990) (#1002) [f69e570, 218fd25]
  • Remove unneeded prefixed CSS (#989) [5e56833]
  • Optimize images (#1007) [b2fa6d5]
  • Add yarn.lock to .gitignore (#1035) [03ecf74]
  • Fix greedy flag bug. Fixes #1039 [32cd99f]
  • Ruby: Fix test after #1023 [b15d43b]
  • Ini: Fix test after #1047 [25cdd3f]
  • Reduce risk of XSS (#1051) [17e33bc]
  • env.code can be modified by before-sanity-check hook even when using language-none. Fix #1066 [83bafbd]

1.5.1 (2016-06-05)

Updated components

  • Normalize Whitespace:
    • Add class that disables the normalize whitespace plugin [9385c54]
  • JavaScript Language:
    • Rearrange the string and template-string token in JavaScript [1158e46]
  • SQL Language:
    • add delimeter and delimeters keywords to sql (#958) [a9ef24e]
    • add AUTO_INCREMENT and DATE keywords to sql (#954) [caea2af]
  • Diff Language:
    • Highlight diff lines with only + or - (#952) [4d0526f]

Other changes

  • Allow for asynchronous loading of prism.js (#959)
  • Use toLowerCase on language names (#957) [acd9508]
  • link to index for basic usage - fixes #945 (#946) [6c772d8]
  • Fixed monospace typo (#953) [e6c3498]

1.5.0 (2016-05-01)

New components

  • Bro Language (#925)
  • Protocol Buffers Language (#938) [ae4a4f2]

Updated components

  • Keep Markup:
    • Fix Keep Markup plugin incorrect highlighting (#880) [24841ef]
  • Groovy Language:
    • Fix double HTML-encoding bug in Groovy language [24a0936]
  • Java Language:
    • Adding annotation token for Java (#905) [367ace6]
  • SAS Language:
    • Add missing keywords for SAS (#922)
  • YAML Language:
    • fix hilighting of YAML keys on first line of code block (#943) [f19db81]
  • C# Language:
    • Support for generic methods in csharp [6f75735]

New plugins

  • Unescaped Markup [07d77e5]
  • Normalize Whitespace (#847) [e86ec01]

Other changes

  • Add JSPM support [ad048ab]
  • update linear-gradient syntax from left to to right [cd234dc]
  • Add after-property to allow ordering of plugins [224b7a1]
  • Partial solution for the "Comment-like substrings"-problem [2705c50]
  • Add property 'aliasTitles' to components.js [54400fb]
  • Add before-highlightall hook [70a8602]
  • Fix catastrophic backtracking regex issues in JavaScript [ab65be2]

1.4.1 (2016-02-03)

Other changes

  • Fix DFS bug in Prism core [b86c727]

1.4.0 (2016-02-03)

New components

  • Solarized Light (#855) [70846ba]
  • JSON (#370) [ad2fcd0]

Updated components

  • Show Language:
    • Remove data-language attribute (#840) [eb9a83c]
    • Allow custom label without a language mapping (#837) [7e74aef]
  • JSX:
    • Better Nesting in JSX attributes (#842) [971dda7]
  • File Highlight:
    • Defer File Highlight until the full DOM has loaded. (#844) [6f995ef]
  • Coy Theme:
    • Fix coy theme shadows (#865) [58d2337]
  • Show Invisibles:
    • Ensure show-invisibles compat with autoloader (#874) [c3cfb1f]
    • Add support for the space character for the show-invisibles plugin (#876) [05442d3]

New plugins

  • Command Line (#831) [8378906]

Other changes

  • Use document.currentScript instead of document.getElementsByTagName() [fa98743]
  • Add prefix for Firefox selection and move prefixed rule first [6d54717]
  • No background for <code> in <pre> [8c310bc]
  • Fixing to initial copyright year [69cbf7a]
  • Simplify the “lang” regex [417f54a]
  • Fix broken heading links [a7f9e62]
  • Prevent infinite recursion in DFS [02894e1]
  • Fix incorrect page title [544b56f]
  • Link scss to webplatform wiki [08d979a]
  • Revert white-space to normal when code is inline instead of in a pre [1a971b5]

1.3.0 (2015-10-26)

New components

  • AsciiDoc (#800) [6803ca0]
  • Haxe (#811) [bd44341]
  • Icon (#803) [b43c5f3]
  • Kotlin (#814) [e8a31a5]
  • Lua (#804) [a36bc4a]
  • Nix (#795) [9b275c8]
  • Oz (#805) [388c53f]
  • PARI/GP (#802) [253c035]
  • Parser (#808) [a953b3a]
  • Puppet (#813) [81933ee]
  • Roboconf (#812) [f5db346]

Updated components

  • C:
    • Highlight directives in preprocessor lines (#801) [ad316a3]
  • C#:
    • Highlight directives in preprocessor lines (#801) [ad316a3]
    • Fix detection of float numbers (#806) [1dae72b]
  • F#:
    • Highlight directives in preprocessor lines (#801) [ad316a3]
  • JavaScript:
    • Highlight true and false as booleans (#801) [ad316a3]
  • Python:
    • Highlight triple-quoted strings before comments. Fix #815 [90fbf0b]

New plugins

  • Previewer: Time (#790) [88173de]
  • Previewer: Angle (#791) [a434c86]

Other changes

  • Increase mocha's timeout [f1c41db]
  • Prevent most errors in IE8. Fix #9 [9652d75]
  • Add U.S. Web Design Standards on homepage. Fix #785 [e10d48b, 79ebbf8, 2f7088d]
  • Added gulp task to autolink PRs and commits in changelog [5ec4e4d]
  • Use child processes to run each set of tests, in order to deal with the memory leak in vm.runInNewContext() [9a4b6fa]

1.2.0 (2015-10-07)

New components

  • Batch (#781) [eab5b06]

Updated components

  • ASP.NET:
    • Simplified pattern for <script> [29643f4]
  • Bash:
    • Fix regression in strings (#792) [bd275c2]
    • Substantially reduce wrongly highlighted stuff (#793) [ac6fe2e]
  • CSS:
    • Simplified pattern for <style> [29643f4]
  • JavaScript:
    • Simplified pattern for <script> [29643f4]

New plugins

  • Previewer: Gradient (#783) [9a63483]

Updated plugins

  • Previewer: Color

    • Add support for Sass variables [3a1fb04]
  • Previewer: Easing

    • Add support for Sass variables [7c7ab4e]

Other changes

  • Test runner: Allow to run tests for only some languages [5ade8a5]
  • Download page: Fixed wrong components order raising error in generated file (#797) [7a6aed8]

1.1.0 (2015-10-04)

New components

  • ABAP (#636) [75b0328, 0749129]
  • APL (#308) [1f45942, 33a295f]
  • AutoIt (#771) [211a41c]
  • BASIC (#620) [805a0ce]
  • Bison (#764) [7feb135]
  • Crystal (#780) [5b473de, 414848d]
  • D (#613) [b5e741c]
  • Diff (#450) [ef41c74]
  • Docker (#576) [e808352]
  • Elixir (#614) [a1c028c, c451611, 2e637f0, ccb6566]
  • GLSL (#615) [247da05]
  • Inform 7 (#616) [d2595b4]
  • J (#623) [0cc50b2]
  • MEL (#618) [8496c14]
  • Mizar (#619) [efde61d]
  • Monkey (#621) [fdd4a3c]
  • nginx (#776) [dc4fc19, e62c88e]
  • Nim (#622) [af9c49a]
  • OCaml (#628) [556c04d]
  • Processing (#629) [e47087b]
  • Prolog (#630) [dd04c32]
  • Pure (#626) [9c276ab]
  • Q (#624) [c053c9e]
  • Qore [125e91f]
  • Tcl [a3e751a, 11ff829]
  • Textile (#544) [d0c6764]
  • Verilog (#640) [44a11c2, 795eb99]
  • Vim [69ea994]

Updated components

  • Bash:
    • Add support for Here-Documents (#787) [b57a096]
    • Remove C-like dependency (#789) [1ab4619]
  • C:
    • Fixed numbers [4d64d07, 071c3dd]
  • C-like:
    • Add word boundary before class-name prefixes [aa757f6]
    • Improved operator regex + add != and !== [135ee9d]
    • Optimized string regexp [792e35c]
  • F#:
    • Fixed keywords containing exclamation mark [09f2005]
    • Improved string pattern [0101c89]
    • Insert preprocessor before keyword + don't allow line feeds before # [fdc9477]
    • Fixed numbers [0aa0791]
  • Gherkin:
    • Don't allow spaces in tags [48ff8b7]
    • Handle \r\n and \r + allow feature alone + don't match blank td/th [ce1ec3b]
  • Git:
    • Added more examples (#652) [95dc102]
    • Add support for unified diff. Fixes #769, fixes #357, closes #401 [3aadd5d]
  • Go:
    • Improved operator regexp + removed punctuation from it [776ab90]
  • Haml:
    • Combine both multiline-comment regexps + handle \r\n and \r [f77b40b]
    • Handle \r\n and \r in filter regex [bbe68ac]
  • Handlebars:
    • Fix empty strings, add plus sign in exponential notation, improve block pattern and variable pattern [c477f9a]
    • Properly escape special replacement patterns ($) in Handlebars, PHP and Smarty. Fix #772 [895bf46]
  • Haskell:
    • Removed useless backslashes and parentheses + handle \r\n and \r + simplify number regexp + fix operator regexp [1cc8d8e]
  • HTTP:
    • Fix indentation + Add multiline flag for more flexibility + Fix response status + Handle \r\n and \r [aaa90f1]
  • Ini:
    • Fix some regexps + remove unused flags [53d5839]
  • Jade:
    • Add todo list + remove single-line comment pattern + simplified most patterns with m flag + handle \r\n and \r [a79e838]
  • Java:
    • Fix number regexp + simplified number regexp and optimized operator regexp [21e20b9]
  • JavaScript:
    • JavaScript: Allow for all non-ASCII characters in function names. Fix #400 [29e26dc]
  • JSX:
    • Allow for one level of nesting in scripts (Fix #717) [90c75d5]
  • Julia:
    • Simplify comment regexp + improved number regexp + improved operator regexp [bcac7d4]
  • Keyman:
    • Move header statements above keywords [23a444c]
  • LaTeX:
    • Simplify comment regexp [132b41a]
    • Extend support [942a6ec]
  • Less:
    • Remove useless part in property regexp [80d8260]
  • LOLCODE:
    • Removed useless parentheses [8147c9b]
  • Makefile:
    • Add known failures in example [e0f8984]
    • Handle \r\n in comments and strings + fix "-include" keyword
  • Markup:
    • Simplify patterns + handle \r\n and \r [4c551e8]
    • Don't allow = to appear in tag name [85d8a55]
    • Don't allow dot inside tag name [283691e]
  • MATLAB:
    • Simplify string pattern to remove lookbehind [a3cbecc]
  • NASM:
    • Converted indents to tabs, removed uneeded escapes, added lookbehinds [a92e4bd]
  • NSIS:
    • Simplified patterns [bbd83d4]
    • Fix operator regexp [44ad8dc]
  • Objective-C:
    • Simplified regexps + fix strings + handle \r [1d33147]
    • Fix operator regexp [e9d382e]
  • Pascal:
    • Simplified regexps [c03c8a4]
  • Perl:
    • Simplified regexps + Made most string and regexp patterns multi-line + Added support for regexp's n flag + Added missing operators [71b00cc]
  • PHP:
    • Simplified patterns [f9d9452]
    • Properly escape special replacement patterns ($) in Handlebars, PHP and Smarty. Fix #772 [895bf46]
  • PHP Extras:
    • Fix $this regexp + improve global regexp [781fdad]
  • PowerShell:
    • Update definitions for command/alias/operators [14da55c]
  • Python:
    • Added async/await and @ operator (#656) [7f1ae75]
    • Added 'self' keyword and support for class names (#677) [d9d4ab2]
    • Simplified regexps + don't capture where unneeded + fixed operators [530f5f0]
  • R:
    • Fixed and simplified patterns [c20c3ec]
  • reST:
    • Simplified some patterns, fixed others, prevented blank comments to match, moved list-bullet down to prevent breaking quotes [e6c6b85]
  • Rip:
    • Fixed some regexp + moved down numbers [1093f7d]
  • Ruby:
    • Code cleaning, handle \r\n and \r, fix some regexps [dd4989f]
    • Add % notations for strings and regexps. Fix #590 [2d37800]
  • Rust:
    • Simplified patterns and fixed operators [6c8494f]
  • SAS:
    • Simplified datalines and optimized operator patterns [6ebb96f]
  • Sass:
    • Add missing require in components [35b8c50]
    • Fix comments, operators and selectors and simplified patterns [28759d0]
    • Highlight "-" as operator only if surrounded by spaces, in order to not break hyphenated values (e.g. "ease-in-out") [b2763e7]
  • Scala:
    • Simplified patterns [daf2597]
  • Scheme:
    • Add missing lookbehind on number pattern. Fix #702 [3120ff7]
    • Fixes and simplifications [068704a]
    • Don't match content of symbols starting with a parenthesis [fa7df08]
  • Scss:
    • Simplified patterns + fixed operators + don't match empty selectors [672c167]
  • Smalltalk:
    • Simplified patterns [d896622]
  • Smarty:
    • Optimized regexps + fixed punctuation and operators [1446700]
    • Properly escape special replacement patterns ($) in Handlebars, PHP and Smarty. Fix #772 [895bf46]
  • SQL:
    • Simplified regexp + fixed keywords and operators + add CHARSET keyword [d49fec0]
  • Stylus:
    • Rewrote the component entirely [7729728]
  • Swift:
    • Optimized keywords lists and removed duplicates [936e429]
    • Add support for string interpolation. Fix #448 [89cd5d0]
  • Twig:
    • Prevent "other" pattern from matching blank strings [cae2cef]
    • Optimized regexps + fixed operators + added missing operators/keywords [2d8271f]
  • VHDL:
    • Move operator overloading before strings, don't capture if not needed, handle \r\n and \r, fix numbers [4533f17]
  • Wiki markup:
    • Fixed emphasis + merged some url patterns + added TODOs [8cf9e6a]
  • YAML:
    • Handled \r\n and \r, simplified some patterns, fixed "---" [9e33e0a]

New plugins

  • Autoloader (#766) [ed4ccfe]
  • JSONP Highlight [b2f14d9]
  • Keep Markup (#770) [bd3e9ea]
  • Previewer: Base (#767) [cf764c0]
  • Previewer: Color (#767) [cf764c0]
  • Previewer: Easing (#773) [513137c, 9207258, 4303c94]
  • Remove initial line feed [ed9f2b2, b8d098e]

Updated plugins

  • Autolinker:
    • Don't process all grammars on load, process each one in before-highlight. Should fix #760 [a572495]
  • Line Highlight:
    • Run in complete hook [f237e67]
    • Fixed position when font-size is odd (#668) [86bbd4c, 8ed7ce3]
  • Line Numbers:
    • Run in complete hook [3f4d918]
    • Don't run if already exists [c89bbdb]
    • Don't run if block is empty. Fix #669 [ee463e8]
    • Correct calculation for number of lines (fix #385) [14f3f80]
    • Fix computation of line numbers for single-line code blocks. Fix #721 [02b220e]
    • Fixing word wrap on long code lines [56b3d29]
    • Fixing coy theme + line numbers plugin overflowing on long blocks of text (#762) [a0127eb]
  • Show Language:
    • Add gulp task to build languages map in Show language plugin (Fix #671) [39bd827]
    • Add reset styles to prevent bug in Coy theme (#703) [08dd500]

Other changes

  • Fixed link to David Peach article (#647) [3f679f8]
  • Added complete hook, which runs even when no grammar is found [e58b6c0, fd54995]
  • Added test suite runner (#588) [956cd85]
  • Added tests for every components
  • Added .gitattributes to prevent line ending changes in test files [45ca8c8]
  • Split plugins into 3 columns on Download page [a88936a]
  • Removed comment in components.js to make it easier to parse as JSON (#679) [2cb1326]
  • Updated README.md [1388256]
  • Updated documentation since the example was not relevant any more [80aedb2]
  • Fixed inline style for Coy theme [52829b3]
  • Prevent errors in nodeJS (#754) [9f5c93c, 0356c58]
  • Explicitly make the Worker close itself after highlighting, so that users have control on this behaviour when directly using Prism inside a Worker. Fix #492 [e42a228]
  • Added some language aliases: js for javascript, xml, html, mathml and svg for markup [2f9fe1e]
  • Download page: Add a "Select all" checkbox (#561) [9a9020b]
  • Download page: Don't add semicolon unless needed in generated code. Fix #273 [5a5eec5]
  • Add language counter on homepage [889cda5]
  • Improve performance by doing more work in the worker [1316abc]
  • Replace Typeplate with SitePoint on homepage. Fix #774 [0c54308]
  • Added basic .editorconfig [c48f55d]

1.0.1 (2015-07-26)

New components

  • Brainfuck (#611) [3ede718]
  • Keyman (#609) [2698f82, e9936c6]
  • Makefile (#610) [3baa61c]
  • Sass (Sass) (fix #199) [b081804]
  • VHDL (#595) [43e6157]

Updated components

  • ActionScript:
    • Fix ! operator and add ++ and -- as whole operators [6bf0794]
    • Fix XML highlighting [90257b0]
    • Update examples to add inline XML [2c1626a, 3987711]
  • Apache Configuration:
    • Don't include the spaces in directive-inline [e87efd8]
  • AppleScript:
    • Allow one level of nesting in block comments [65894c5]
    • Removed duplicates between operators and keywords [1ec5a81]
    • Removed duplicates between keywords and classes [e8d09f6]
    • Move numbers up so they are not broken by operator pattern [66dac31]
  • ASP.NET:
    • Prevent Markup tags from breaking ASP tags + fix MasterType directive [1f0a336]
  • AutoHotkey:
    • Allow tags (labels) to be highlighted at the end of the code [0a1fc4b]
    • Match all operators + add comma to punctuation [f0ccb1b]
    • Removed duplicates in keywords lists [fe0a068]
  • Bash:
    • Simplify comment regex [2700981]
    • Removed duplicates in keywords + removed unneeded parentheses [903b8a4]
  • C:
    • Removed string pattern (inherited from C-like) [dcce1a7]
    • Better support for macro statements [4868635]
  • C#:
    • Fix preprocessor pattern [86311f5]
  • C++:
    • Removed delete[] and new[] broken keywords [42fbeef]
  • C-like:
    • Removed unused 'ignore' pattern [b6535dd]
    • Use look-ahead instead of inside to match functions [d4194c9]
  • CoffeeScript:
    • Prevent strings from ending with a backslash [cb6b824]
  • CSS:
    • Highlight parentheses as punctuation [cd0273e]
    • Improved highlighting of at-rules [e254088]
    • Improved URL and strings [901812c]
    • Selector regexp should not include last spaces before brace [f2e2718]
    • Handle \r\n [15760e1]
  • Eiffel:
    • Fix string patterns order + fix /= operator [7d1b8d7]
  • Erlang:
    • Fixed quoted functions, quoted atoms, variables and <= operator [fa286aa]
  • Fortran:
    • Improved pattern for comments inside strings [40ae215]
    • Fixed order in keyword pattern [8a6d32d]
  • Handlebars:
    • Support blocks with dashes (#587) [f409b13]
  • JavaScript:
    • Added support for 'y' and 'u' ES6 JavaScript regex flags (#596) [5d99957]
    • Added support for missing ES6 keywords in JavaScript (#596) [ca68b87]
    • Added async and await keywords (#575) [5458cec]
    • Added support for Template strings + interpolation [04f72b1]
    • Added support for octal and binary numbers (#597) [a8aa058]
    • Improve regex performance of C-like strings and JS regexps [476cbf4]
  • Markup:
    • Allow non-ASCII chars in tag names and attributes (fix #585) [52fd55e]
    • Optimized tag's regexp so that it stops crashing on large unclosed tags [75452ba]
    • Highlight single quotes in attr-value as punctuation [1ebcb8e]
    • Doctype and prolog can be multi-line [c19a238]
  • Python:
    • Added highlighting for function declaration (#601) [a88aae8]
    • Fixed wrong highlighting of variables named a, b, c... f (#601) [a88aae8]
  • Ruby:
    • Added support for string interpolation [c36b123]
  • Scss:
    • Fixed media queries highlighting [bf8e032]
    • Improved highlighting inside at-rules [eef4248]
    • Match placeholders inside selectors (fix #238) [4e42e26]
  • Swift:
    • Update keywords list (fix #625) [88f44a7]

Updated plugins

  • File Highlight:
    • Allow to specify the highlighting language. Fix #607 [8030db9]
  • Line Highlight:
    • Fixed incorrect height in IE9 (#604) [f1705eb]
    • Prevent errors in IE8 [5f133c8]

Other changes

  • Removed moot version property from bower.json (#594) [4693499]
  • Added repository to bower.json (#600) [8e5ebcc]
  • Added .DS_Store to .gitignore [1707e4e]
  • Improve test drive page usability. Fix #591 [fe60858]
  • Fixed prism-core and prism-file-highlight to prevent errors in IE8 [5f133c8]
  • Add Ubuntu Mono font to font stack [ed9d7e3]

1.0.0 (2015-05-23)

  • First release
  • Supported languages:
    • ActionScript
    • Apache Configuration
    • AppleScript
    • ASP.NET (C#)
    • AutoHotkey
    • Bash
    • C
    • C#
    • C++
    • C-like
    • CoffeeScript
    • CSS
    • CSS Extras
    • Dart
    • Eiffel
    • Erlang
    • F#
    • Fortran
    • Gherkin
    • Git
    • Go
    • Groovy
    • Haml
    • Handlebars
    • Haskell
    • HTTP
    • Ini
    • Jade
    • Java
    • JavaScript
    • Julia
    • LaTeX
    • Less
    • LOLCODE
    • Markdown
    • Markup
    • MATLAB
    • NASM
    • NSIS
    • Objective-C
    • Pascal
    • Perl
    • PHP
    • PHP Extras
    • PowerShell
    • Python
    • R
    • React JSX
    • reST
    • Rip
    • Ruby
    • Rust
    • SAS
    • Sass (Scss)
    • Scala
    • Scheme
    • Smalltalk
    • Smarty
    • SQL
    • Stylus
    • Swift
    • Twig
    • TypeScript
    • Wiki markup
    • YAML
  • Plugins:
    • Autolinker
    • File Highlight
    • Highlight Keywords
    • Line Highlight
    • Line Numbers
    • Show Invisibles
    • Show Language
    • WebPlatform Docs
Clone repository
  • README
  • SUMMARY
  • bidchance.wiki
    • README
    • open_bidchance_batchGetDatas
    • open_bidchance_batchGetKeywords
    • open_bidchance_count
    • open_bidchance_find
    • open_bidchance_keywords
    • open_bidchance_search
    • open_bidchance_searchPage
  • common
    • authenticate
    • error_code
    • output_format
    • service_hosts_pub
  • company.wiki
    • README
View All Pages