-
Notifications
You must be signed in to change notification settings - Fork 17
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
Indentation interferes with syntax highlighting #275
Comments
Are we treating them as plain text now? I would strongly suggest against an additional frontend-only parameter. It could be implemented by checking the file extension of |
Well, rather we treat them as 'comments'. Maybe as plain text would be better that treating them as comments as you can see above. |
report
I think the essential problem is that many syntax highlighters are indentation aware. For example, the Python syntax highlighter will work differently if the block of python code indents by 2 or 4, and the markdown highlighter also works this way. The solution here would be calculating the level of indentation and removing block level indentation before applying the syntax highlighter. I am not sure how it can be done though. |
I"m using
report
action to dump some utility functions, see below:Not sure how hard it is but it would be real nice to add some argument in
report
action to specify syntax highlight type.The text was updated successfully, but these errors were encountered: