Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement of prism-file-highlight plugin #1586

Merged
merged 6 commits into from
Nov 28, 2018
Merged

Enhancement of prism-file-highlight plugin #1586

merged 6 commits into from
Nov 28, 2018

Conversation

OlehDutchenko
Copy link
Contributor

@OlehDutchenko OlehDutchenko commented Oct 19, 2018

  • fixes double loading already received files on repeated call Prism.fileHighlight()
  • load files only in wanted container (element):
Prism.fileHighlight(); // look up in `document`

var container = document.getElementById( 'my-container' );
Prism.fileHighlight( container );

dutchenkoOleg added 5 commits October 18, 2018 23:57
- fixes double loading already received files on repeated call `Prism.fileHighlight()`
- load files only in wanted container (element)
@mAAdhaTTah mAAdhaTTah merged commit 10239c1 into PrismJS:master Nov 28, 2018
ggrossetie pushed a commit to ggrossetie/prism that referenced this pull request Mar 11, 2019
Checks if a file has been loaded already and bails if it is and adds the ability to
limit the scope of the file highlight plugin.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants