-
Notifications
You must be signed in to change notification settings - Fork 9
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
Syntax Highlighting #99
Comments
If you can get it working, I'd consider merging it in. Javascript libs have just been dumped in lib/Devel/hdb/html/. For example, handlebars and jquery are already there. Whatever highlighting is used, it need to be readable even with the blue background of the current line, which it seems to, Some complications you might need to be aware of. hdb parses the Perl code lines looking for things that look variable-like to support hovering the mouse over a variable to see its value. Simple vars like I also noticed that the highlighter does something with the line numbers on the left side of the code windows: some of them are green and some are black. Multiline strings also aren't highlighted properly. Both of these are probably because of how hdb breaks up each code line into its own div. |
The Javascript lib highlight.js is now in lib/Devel/hdb/html. But I'm still resolving the issue with multi line strings (and also here-docs) Thanks for your comments and for pointing out multi line strings problem |
I can help adding syntax highlighting to hdb.
I already did a small attempt using highlight.js: pablrod@00a3dc1 But it need some work to get a good pull request (Solve CSS "dirty tricks" and remove CDN use).
If you think is a good idea, just let me know.
The text was updated successfully, but these errors were encountered: