Comments (4)
They are, in the CSS. They are used with .token
, like .token.comment
. I find it highly unlikely that .token.whatever
will clash with author styles.
from prism.
That doesn't help because you can still end up with specificity problems. All it takes if for someone (e.g. a wordpress user) to have CSS like #comments .comment
and then any code in a comment is going to be affected. Hence, either namespace the classes or use !important
in the theme CSS.
from prism.
can't they get around that by tag qualifying the other code? Prism’s .comment
s are spans, I doubt WP .comment
s are.
I really like the sensible class names it currently has (they're one of the 6 advantages listed in the header), so I'm very reluctant to throw this away for the possibility of a collision. After all, if an author wants to customize the token names, it's trivial.
from prism.
I don't think you need to throw them away, but it's also sensible to protect your plugin from author styles without relying on them making other changes to their code. Hope you'll consider adding a simple namespace or the option to do so. Thanks
from prism.
Related Issues (20)
- Request for Harbour+hwgui in an unique language
- Nios-II assembly support!
- Line highlight plugin highlights the line on last rendered code block only on a page with multiple code blocks. HOT 5
- Backquoted let in Scheme is not a keyword
- C# highlighting is not respecting the @ symbol in front of a parameter. HOT 1
- Extended Symbols in Scheme
- TaskJuggler .tjp .tji
- Getting autoprefixer warning from prism-line-highlight file
- Line highlight doesn't line up when a line above text wraps
- MikroTik Scripting language
- Add support for SystemVerilog
- Autoloader Plugin causes Command Line Plugin to run twice when used from CDN breaking data-filter-* on <pre>
- Add support for Terraform HOT 1
- (C++) Integer literals with quote delimiters in preprocessor highlighted wrong
- (Python) Incorrect Highlighting of string HOT 3
- HTTP body no longer highlighted based on Content-Type header.
- Plugin command-line examples don't work
- Add Support for Verse
- Add support for Hurl
- Add support for AWS CloudWatch Logs query (CLW)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prism.