Sublime Forum

Create a linter for Sublime Text 3 without a command line

#1

I want to create a (ST3) linter for my own XML based dialect.

What I have so far: an application that listens on a network socket which I use to send my buffer and get back a text with an error message and line/column indicating where the error is.

/path/to/file.xml:5:12: error message

Now I would like to show this to the user in a nice way such as on this page: http://www.sublimelinter.com/en/stable/

I’ve thought about using the instructions for sublimelinter to create a new package but this explains only how to use command line based linters, and I don’t have such a linter.

Is there a way to give sublimelinter (or a similar package) this information I’ve got so it can display it in a nicely fashion?

0 Likes

#2

There is a method you can overwrite but it doesn’t seem to be documented (anymore?).

https://github.com/FichteFoll/SublimeLinter-contrib-sublime-syntax is a linter plugin that does not run an external executable.

1 Like

#3

Thank you very much, that looks like what I am looking for. I’ll try it out and report back.

0 Likes

#4

I have got first good results from your answer, thank you very much. Still a way to go, but now I know where to look.

So thank you again for your answer, very much appreciated!

anhil

2 Likes