plugins/show-invisibles/prism-show-invisibles.js


Log

Author Commit Date CI Message
Michael Schmidt 158011e4 2021-04-18T15:55:05 ESLint: Added wrap-iife rule (#2867)
Michael Schmidt 772d42be 2021-03-26T13:16:16 Added ESLint with minimal config (#2831)
Michael Schmidt 96335642 2021-03-21T17:22:54 Plugins: Consistent Prism check (#2788)
Michael Schmidt 1090b253 2019-01-23T04:45:07 Show invisibles inside tokens (#1610) This PR fixes #1608. The patterns for invisible characters (ICs) are now also recursively added to the `inside` of every pattern. I also had to change the color of ICs because in #1607 I changed the color to `inherit` which causes the ICs to have different colors depending on which token they are inside of. So, to make everything consistent, I changed the color to grey (`rgb(128, 128, 128)`) and made it half transparent so it would blend in. Looks really similar to #1607. --- Most of the code is just traversing the language definition, handling the different kinds of tokens (simple regex, array, pattern object), and trying not to fall because of the added tokens for ICs and the `rest` property.
RunDevelopment 7a2d153b 2018-11-12T20:14:19 Revert "Show invisibles inside tokens" This reverts commit 2d622f17e4f6d746e8f4fa211c7f6b7ccb3f27b4.
RunDevelopment 2d622f17 2018-11-12T20:12:44 Show invisibles inside tokens
James DiGioia ed8bdb55 2017-10-10T01:40:44 Check if tokens exists and return (#1195) If the language was autoloaded, the grammar may not exist yet. We need to check if it exists before we attempt to modify it.
Andreas Rohner 05442d3e 2016-02-01T14:16:13 Add support for the space character for the show-invisibles plugin This patch adds a bit of position magic, so that the invisibles are displayed on top of the original character. This allows for the inclusion of the space character.
mAAdhaTTah c3cfb1fb 2016-01-30T14:46:38 Ensure show-invisibles compat with autoloader When using the autoloader, the language isn't loaded at the time the show-invisibles plugin attaches its extra tokens. This defers attaching the extra tokens to just before highlighting, so we ensure we're able to attach to the language grammar.
Golmote 0356c58c 2015-09-03T19:09:48 Apply changes from #754 to all plugins so that none of them throw errors in node. Autolinker, Show invisibles and WPD can now be used with node. Removed unused minified CSS file. Also added missing space between attributes during wrapping.
Vivek Kumar Bansal b6e7da53 2015-01-10T21:48:54 fixes #464 crlf issue
Lea Verou bd4e8d15 2012-07-23T18:54:30 ALL THE THINGS! Most notably: Simple templating, API changes, show invisibles plugin, download (build) page