Home Download Buy Blog Forum Support

Show Syntax Highlighting Patterns?

Show Syntax Highlighting Patterns?

Postby moswald on Mon Jan 14, 2013 8:19 pm

Is there a way to debug a syntax highlight file? I want to be able to find out why Sublime chose to color the text a certain way.
moswald
 
Posts: 6
Joined: Wed Sep 05, 2012 3:43 pm

Re: Show Syntax Highlighting Patterns?

Postby moswald on Mon Jan 14, 2013 8:24 pm

While I'm on the topic, do I really have to shut down Sublime before I can see the changes to the tmLanguage file reflected?
moswald
 
Posts: 6
Joined: Wed Sep 05, 2012 3:43 pm

Re: Show Syntax Highlighting Patterns?

Postby handycam on Tue Jan 15, 2013 2:04 am

No, you should see changes right away when you save a theme file.

I recommend a package called "scope hunter" to see what is what.
Mac OS 10.9.3
ST 3 (3059)
handycam
 
Posts: 271
Joined: Tue Jan 03, 2012 2:42 pm

Re: Show Syntax Highlighting Patterns?

Postby moswald on Tue Jan 15, 2013 9:29 pm

I am definitely not getting anything updated without restarting Sublime. Have you got an idea on why that might be?

Thanks for pointing me to Scope Hunter, that's a big help.
moswald
 
Posts: 6
Joined: Wed Sep 05, 2012 3:43 pm

Re: Show Syntax Highlighting Patterns?

Postby nick. on Wed Jan 16, 2013 2:21 pm

If you're changing a language's syntax definition (.tmLanguage) file then you'll have to restart sublime. If you're just changing the color scheme (.tmTheme), that should happen instantly, barring syntax errors.
nick.
 
Posts: 266
Joined: Wed Jan 18, 2012 3:45 am

Re: Show Syntax Highlighting Patterns?

Postby moswald on Wed Jan 16, 2013 6:30 pm

Yep, I'm changing the tmLanguage. Annoying.
moswald
 
Posts: 6
Joined: Wed Sep 05, 2012 3:43 pm

Re: Show Syntax Highlighting Patterns?

Postby nick. on Wed Jan 16, 2013 8:15 pm

Agreed.
nick.
 
Posts: 266
Joined: Wed Jan 18, 2012 3:45 am


Return to General Discussion

Who is online

Users browsing this forum: estmatic, Narretz and 16 guests