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

Option to show the language that is highlighted #1

Closed
kizu opened this issue Jul 11, 2012 · 1 comment
Closed

Option to show the language that is highlighted #1

kizu opened this issue Jul 11, 2012 · 1 comment

Comments

@kizu
Copy link
Contributor

kizu commented Jul 11, 2012

For big code blocks it would be nice to have somewhere a badge or any other sign of what the language is in there. While it can be obvious in most cases, for some languages it would be better to show this information.

As a suggestion of the possible design — put the name of the current language in the top right corner as a backgound. However, it would need an extra markup to have it don't scroll with the content of the code block. But if it's acceptable, then it can be done by plain CSS with pseudo-element.

@LeaVerou
Copy link
Member

Accepted, will be done as a plugin. Should be fairly easy to do. :)

nauzilus added a commit to nauzilus/prism that referenced this issue Feb 24, 2014
LeaVerou added a commit that referenced this issue Apr 28, 2014
Plugin to show highlighted language, per Issue #1
@Golmote Golmote mentioned this issue Dec 13, 2014
Golmote pushed a commit that referenced this issue Jun 19, 2015
zeitgeist87 pushed a commit that referenced this issue Jan 27, 2016
…ightcss

New Theme for PrismJS - Solarized Light
RunDevelopment referenced this issue in RunDevelopment/prism Aug 6, 2020
feat: add command param value token; fix: highlight inline command name...
RunDevelopment referenced this issue in RunDevelopment/prism Apr 5, 2022
skippi referenced this issue in skippi/prism Dec 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants