| 1 | ## Version 10 Breaking Changes |
| 2 | |
| 3 | Incompatibilities: |
| 4 | |
| 5 | - chore(parser): compressed version 9.x language definitions no longer supported (rebuild them minified) [Josh Goebel][] |
| 6 | - `nohightlight` and `no-highlight` are the only "ignore me" css classes now (`plain` and `text` no longer count) |
| 7 | (to get the old behavior you can customize `noHighlightRe`) |
| 8 | - a grammar with a top-level `self` reference will now always throw an error |
| 9 | (previously in safe mode this would be silently ignored) |
| 10 | - PHP templates are now detected as `php-template`, not `xml` |
| 11 | |
| 12 | Renamed Language Files: |
| 13 | |
| 14 | - chore(parser): `htmlbars.js` now depends on `handlebars.js` [Josh Goebel][] |
| 15 | - chore(parser): rename `nimrod.js` to `nim.js` [Josh Goebel][] |
| 16 | - chore(parser): rename `cs.js` to `csharp.js` [Josh Goebel][] |
| 17 | - chore(parser): rename `tex.js` to `latex.js` [Josh Goebel][] |
| 18 | - chore(parser): effectively rename `cpp.js` to `c-like.js` [Josh Goebel][] |
| 19 | - chore(parser): create new `c.js` (C), depends on `c-like` now [Josh Goebel][] |
| 20 | - chore(parser): create new `cpp.js` (C), depends on `c-like` now [Josh Goebel][] |
| 21 | - This will allow us to clean up C/C++ in the future without another breaking change |
| 22 | by getting this require change out of the way early. |
| 23 | (https://github.com/highlightjs/highlight.js/issues/2146) |
| 24 | |
| 25 | Legacy Browser Issues: |
| 26 | |
| 27 | - **We're now using ES2015 features in the codebase. Internet Explorer 11 is no longer supported.** |
| 28 | - In general legacy browsers are no longer supported. |
| 29 | - chore(parser): remove `load` listener in favor of only the newer `DOMContentLoaded` [Josh Goebel][] |
| 30 | |
| 31 | Removed styles: |
| 32 | |
| 33 | - chore(styles): darkula.css (use darcula.css instead) [Josh Goebel][] |
| 34 | |
| 35 | [Josh Goebel]: https://github.com/joshgoebel |
| 36 | |
| 37 | --- |
| 38 | |
| 39 | Also see: |
| 40 | https://github.com/highlightjs/highlight.js/issues/2273 |