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

code_highlight() supports long strings and symbols #727

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

moodymudskipper
Copy link

Closes #726

I used a better approach than what I used at the time for prettycode. This is less hacky and solves corner cases that I hadn't looked into back then.

It first looked like utils::getParseText() could solve the issue but unfortunately it doesn't parse long symbols (used also for names) so this is not enough. Hence I created get_parse_data() wrapping getParseDate() and borrowing elements from utils::getParseText().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

code_highlight() trims long strings
1 participant