Integrating an external highlighting tool in the Eclipse editor

Ok, this is probably easy, but I don't know the right words to describe this, and hence google it ...

I have an external script that takes a filename and outputs this:

/path/to/file.py:683:80: E501 line too long (85 characters)
/path/to/file.py:690:21: other error message
..etc..

      

Now I know that this output format is widely used by other, very simple IDEs, for example. EditPlus. I don't know how to integrate it with Eclipse.

I want this script to be integrated with my editor windows. I want Eclipse to run it in the background, every time I save the file, and then parse the results and mark all the lines that were printed in the script's output. It should look something like this:

Example

How can i do this?

Note (for those who know why I need this): I know that PyDev is integrated with the pep8.py test program, but this is not enough.

+2


source to share


2 answers


Ok, so I implemented this plugin myself. I think I am doing exactly what I asked for. I made it customizable with some rough regex.



I've posted the code and installation instructions here (GitHub).

+1


source


Your own plugin that runs the script and parses its output can generate markers from that output. See http://www.eclipse.org/articles/Article-Mark%20My%20Words/mark-my-words.html .



0


source







All Articles