In followup to Please enable SQL Language syntax highlighting if you find a tag that needs syntax highlighting and it doesn't have it, or if you have cases where the syntax highlighting is unusual, please add an answer to this Q and we'll sort it out right away.

Or hit a mod up in the chatroom.

share
    
A note, code in SQL Server tags, phrases inside of [] brackets aren't treated like identifiers, as you can see in this question: dba.stackexchange.com/questions/6289/… technically in that case [Table] is an identifier, not a keyword. Don't know if we follow bracket notation though, as only SQL Server does it. –  Ben Brocka Nov 6 '11 at 2:11
    
Is that worth following up on, do you think @BenBrocka because we could always ask SEI to see if they can manipulate the lang-formatter, or we could backtrace it to the google repos and try to get the change fixed there. –  jcolebrand Nov 7 '11 at 15:56
1  
the specific issue isn't super-crucial but it's not reading SQL Server code like SQL Server does, if I notice any more oddities I'll get a list and then maybe we should bring it up. I don't know how big a deal it is to change anything so I hesitate to suggest changes just for SQL Server, I don't even know if SQL Server code is read differently. –  Ben Brocka Nov 7 '11 at 16:36
    
Those things are usually handled by a regex, so we would have to figure out the regex pattern as well I imagine. Opening and closing braces are also always hard to figure out properly. –  jcolebrand Nov 7 '11 at 17:15
    
Should be pretty simple since it's the only thing SQL Server uses brackets for, \[.*?\] is a start of the pattern but it selects the brackets too. –  Ben Brocka Nov 7 '11 at 18:09
    
I rather meant "without interrupting the other parsing that is going on" since I haven't ever looked at that source –  jcolebrand Nov 7 '11 at 18:14
    
yeah, that I have no idea about –  Ben Brocka Nov 7 '11 at 19:14
add comment

2 Answers

This answer has some SQL that is not highlighted. Should we enable highlighting for all of the tags?

share
    
I shall look, it was working this morning on other questions with sql-server so that shouldn't be the case. –  jcolebrand Sep 29 '11 at 20:12
add comment

If this thread isn't just for SQL highlighting, I'll throw this answer as 'unusual'

I know syntax highlighting isn't perfect, and I don't know how it works in answers, but it's reading my script as comment.

share
    
I've added the <!-- language: lang-bsh --> hint to fix this one - is that better? –  Jack Douglas Sep 30 '11 at 10:36
    
@jack Ah-hah, so that's how it's done. Yup, better –  Derek Downey Sep 30 '11 at 11:12
    
This thread is for all highlighting, and when it comes to bash scripts and the like in an answer that's not the same language as the Q, you're probably going to have to force it with the lang tag as Jack did. –  jcolebrand Sep 30 '11 at 16:46
add comment

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .