Home Download Buy Blog Forum Support

SublimeLint (Realtime lint highlighting)

Re: SublimeLint (Realtime lint highlighting)

Postby rdougan on Mon Aug 01, 2011 9:23 pm

This is working perfectly for me, thanks.

Is there a nicer way to highlighting the errors/text? It only seems to add a border, which is a bit hackish. No way to change the scope of the text and use the theme properly?
rdougan
 
Posts: 44
Joined: Sat Apr 09, 2011 2:37 am

Re: SublimeLint (Realtime lint highlighting)

Postby aparajita on Tue Aug 02, 2011 12:40 am

rdougan wrote:Is there a nicer way to highlighting the errors/text? It only seems to add a border, which is a bit hackish. No way to change the scope of the text and use the theme properly?


There is no way to change the scope of text, that is determined by the syntax. If you pull the latest version of https://github.com/Kronuz/SublimeLint, I added support for setting the background/foreground of the offending lines themselves, not just an outline of the line. You can set those colors yourself by modifying the theme. This makes errors much more obvious. Soon there will also be support for going to the next/previous error.
aparajita
 
Posts: 177
Joined: Sun Jul 24, 2011 10:42 pm

Re: SublimeLint (Realtime lint highlighting)

Postby rdougan on Tue Aug 02, 2011 1:31 am

aparajita wrote:
rdougan wrote:Is there a nicer way to highlighting the errors/text? It only seems to add a border, which is a bit hackish. No way to change the scope of the text and use the theme properly?


There is no way to change the scope of text, that is determined by the syntax. If you pull the latest version of https://github.com/Kronuz/SublimeLint, I added support for setting the background/foreground of the offending lines themselves, not just an outline of the line. You can set those colors yourself by modifying the theme. This makes errors much more obvious. Soon there will also be support for going to the next/previous error.


Excellent, this is exactly what I was after. Thank you!

Is there a way to turn off the little X?
rdougan
 
Posts: 44
Joined: Sat Apr 09, 2011 2:37 am

Re: SublimeLint (Realtime lint highlighting)

Postby aparajita on Tue Aug 02, 2011 5:10 am

rdougan wrote:Is there a way to turn off the little X?


Currently no. I'll add it as a setting.
aparajita
 
Posts: 177
Joined: Sun Jul 24, 2011 10:42 pm

Re: SublimeLint (Realtime lint highlighting)

Postby iamntz on Wed Aug 03, 2011 6:04 am

Just a quick note ( i dont know if was here already, please forgive me i didn't read all thread ):
On windows, you kind of need to add PHP directory to your PATH variables, otherwise php lint won't work. On win7 you can do it like this:

Press win+pause. In the window that opened, pick "advanced system settings" from the sidebar. In the new window that opens pick "environment variables". Double click on the PATH variable and, at the end of the string add the path to PHP dir
Don't forget the semicolon!

Restart Sublime and enjoy this great plugin!

Probably you need to do the same for each language (Py, perl and so on).
iamntz
 
Posts: 898
Joined: Fri Apr 29, 2011 8:52 am
Location: Romania

Re: SublimeLint (Realtime lint highlighting)

Postby aparajita on Wed Aug 03, 2011 5:14 pm

aparajita wrote:
rdougan wrote:Is there a way to turn off the little X?


Currently no. I'll add it as a setting.


The latest version of this fork http://github.com/Kronuz/SublimeLint adds the following features:

  • You can now jump directly to the next/previous lint error using ctrl+super+e/ctrl+super+shift+e (OS X) or ctrl+alt+e/ctrl+alt+shift+e (Linux and Windows).
  • By default jumping to the next/previous error will wrap around, you can turn that on or off explicitly with the "sublimelint_wrap_find" setting.
  • Gutter marks are off by default. They can be turned on by setting the "sublimelint_gutter_marks" setting to true.
  • You can disable specific linters by including the language names in the "sublimelint_disable" setting array.
aparajita
 
Posts: 177
Joined: Sun Jul 24, 2011 10:42 pm

Re: SublimeLint (Realtime lint highlighting)

Postby aparajita on Wed Aug 03, 2011 5:17 pm

Oh yeah, I forgot to mention that lint support has been added for Objective-J using a built-in capp_lint. I now have a customized ST2 port of the TextMate Cappuccino bundle available as well:

https://github.com/aparajita/Cappuccino-Sublime
aparajita
 
Posts: 177
Joined: Sun Jul 24, 2011 10:42 pm

Re: SublimeLint (Realtime lint highlighting)

Postby rdougan on Thu Aug 04, 2011 6:07 am

Linting no longer seems to work for me, with the latest version.
rdougan
 
Posts: 44
Joined: Sat Apr 09, 2011 2:37 am

Re: SublimeLint (Realtime lint highlighting)

Postby aparajita on Thu Aug 04, 2011 7:26 pm

rdougan wrote:Linting no longer seems to work for me, with the latest version.


Which language are you trying to lint, which fork of sublimelint?
aparajita
 
Posts: 177
Joined: Sun Jul 24, 2011 10:42 pm

Re: SublimeLint (Realtime lint highlighting)

Postby rdougan on Thu Aug 04, 2011 10:24 pm

aparajita wrote:
rdougan wrote:Linting no longer seems to work for me, with the latest version.


Which language are you trying to lint, which fork of sublimelint?


I'm using https://github.com/Kronuz/SublimeLint.git

It was working a few days ago, so it is a recent thing.
rdougan
 
Posts: 44
Joined: Sat Apr 09, 2011 2:37 am

PreviousNext

Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 15 guests