For future reference, the syntax highlighter used on Google Code is open source: http://code.google.com/p/google-code-prettify/
If you find code that breaks it, you can file a bug (or even a patch :) ) with that project directly. - Dave On Wed, Dec 3, 2008 at 00:25, Richard W <[EMAIL PROTECTED]> wrote: > > Sorry, my mistake. I assumed that code was valid, and although it > works, it's defined by JSlint as "Bad escapement." So apparently it's > not valid. > This issue is entirely unrelated to google code hosting, I'm sorry for > wasting your time. > All is good! Thank you for this service. > Rich > > On Dec 2, 11:10 pm, Richard W <[EMAIL PROTECTED]> wrote: >> Hi There >> >> I've spotted a bug with the syntax highlighter when viewing code in >> the repository. >> >> Now I'm not sure if this bug is actually possible to fix, based on the >> gnarly level of regular expressions used for syntax highlighting. I >> say this only because I use VI (actually vim) as my text editor, and >> even VI's syntax highlighter breaks with this bit of code. >> >> The code in question is perfectly valid Javascript, but it would be >> really neat if syntax highlighters (including google's syntax >> highlighter) didn't break on it. >> >> The script file is >> :http://code.google.com/p/jquery-snakey/source/browse/trunk/js/jquery.... >> You'll notice up to line 203, there is no syntax highlighting, and >> then there is following line 203. >> >> The code that breaks the syntax highlighting is actually at line >> 92-97, where I'm escaping new line characters. >> A simpler example would be: >> var str = >> 'hello\ >> this is a\ >> string'; >> >> Please let me know if google would be wiling to fix this bug. It would >> be nice. >> >> Thank you for your time. >> Best Regards, Rich > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Hosting at Google Code" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/google-code-hosting?hl=en -~----------~----~----~----~------~----~------~--~---

