-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Prism JS plugin to display filename #1038
Comments
@plaindocs I'm quite fond of code snippets saying what language or file it stems from +1 |
Sounds good to me. |
@lislis wanna take a look at this and let me know what you need from my side? |
@plaindocs sorry, I forgot about this one. |
This was merged. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hidden away at the bottom of this page:
http://prismjs.com/plugins/show-language/
is the options of using
data-language
CSS attribute to display a filename for the code example.It requires adding the plugin to Prism, and then tweaking the CSS to make the display of the filename more distinct, but would allow us to cut out quite a lot of boiler plate "put this into your .travis.yml" type text.
It does however require some fairly ugly css in the markdown such as
@lislis @MariadeAnton thoughts?
The text was updated successfully, but these errors were encountered: