-
Notifications
You must be signed in to change notification settings - Fork 750
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
Specific Code Line Highlighting #617
Comments
In this case I tried to use Later as my friend suggested, wrote a custom lexer by extending the Also here is my example workaround |
@revathskumar That issue seems to be similar to what I am trying to achieve, except I am not concerned with diffs. I just want Rouge to somehow be able to identify some characters that indicate the highlighting of a specific line in a code block (used in Markdown with Redcarpet). I am guessing this must be added to the main lexer (or something like that). I could try working on it for a PR but some help would be appreciated. |
I have a spec I'm working on for some kind of "HLML" markup to allow arbitrary combinations of highlighters and custom tokens, which I think is what would be needed here. However, I don't have the bandwidth to work on it any time soon - but I would be happy to pass of a sketch of it if one of yall wanted to take it on. |
@jneen That would be great. I would like giving it a try. |
@jneen Any updates on this? |
Any updates on this? |
Moved to: #790 |
@MischaDeNola happy to help, but could you move this to a different issue? |
Done. |
This contribution has been automatically marked as stale because it has not had any activity for more than a year. It will be closed if no additional activity occurs within the next 14 days. |
Hi everyone :) @jneen added a special escape lexer recently that I think might allow this using HTML. I'd suggest checking that out :) |
This issue has been automatically marked as stale because it has not had any activity for more than a year. It will be closed if no additional activity occurs within the next 14 days. |
After thinking about this again, I don't think the escape lexer does solve the issue. I'll add it back to the pile. Apologies for the delay :( |
This issue has been automatically marked as stale because it has not had any activity for more than a year. It will be closed if no additional activity occurs within the next 14 days. |
|
Hey
Sent from Yahoo Mail on Android
On Fri, Aug 13, 2021 at 11:09 PM, Kevin ***@***.***> wrote:
I hope stalebot doesn't re-open this on my account (I dunno how that works), but it looks like this was implemented in #264, right?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
I wanted to know if it's possible to highlight specific lines of code? For example:
NOTE: By highlight I do not mean syntax highlighting, but rather line highlighting (some applying of background color to the specified line in the code block).
The text was updated successfully, but these errors were encountered: