syntax highlighting
Reported by xenoterracide | June 15th, 2008 @ 01:49 AM
support more syntax highlighting and allow users to specify format for higlighting like one would for a pastebin.
Comments and changes to this ticket
-
-
defunkt June 18th, 2008 @ 04:09 PM
- → State changed from new to resolved
- → Milestone cleared.
- → Assigned user changed from to defunkt
We highlight based on the shebang, so you do have some control over the lexer. As far as pastebin style, I don't think that's something we want at this point.
If you have specific extensions you want highlighted and they are generic enough (like .build being XML), please open a ticket and we can add it so everyone benefits.
-

xenoterracide June 18th, 2008 @ 06:38 PM
based on shebang line? no wonder most of highlighting doesn't work... most files don't have shebang lines.
maybe you should base it on file extension (mimetype) as .sql file don't have a shebang. sgml (this includes html and xml doesn't have a shebang). compiled sources like .c and .cpp don't have them. It's an absolute horrible predictor.
I suggested pastebin style as that allows you to not have to use some predictor so we can set formatting for files like .bashrc which have neither shebang lines or file extensions.
-
defunkt June 18th, 2008 @ 07:07 PM
- → Milestone cleared.
It's based on both. If we recognize the extension, we highlight it. If there's a shebang, we use that instead.
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
