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

adds css class prefixes #221

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

langalex
Copy link

The default CSS potentially clashes with other CSS classes that might be present in an app. This allows you to specify a prefix:

tokens = CodeRay.scan 'x = 1', :ruby
html = tokens.div(css_class_prefix: 'xyz-', css: :class) # => x = <span class="xyz-integer">1</span>

@korny korny self-assigned this Feb 23, 2019
@korny korny added the Encoders label Feb 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants