[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] Code checker
From: |
Erik Lundin |
Subject: |
Re: [Nano-devel] Code checker |
Date: |
Sun, 19 Oct 2014 21:48:19 +0200 |
On Sun, 2014-10-19 at 21:34 +0200, Benno Schulenberg wrote:
> On Sun, Oct 19, 2014, at 19:45, Erik Lundin wrote:
> > What about code checking functionality? I don't know if this topic has
> > been up before (i tried searching the mail archives but couldn't find
> > anything related). Something similar to the spell checker would be a
> > nice feature, but of course focused on code checking.
>
> It seems that you are asking for the linter functionality -- something
> that Chris implemented a couple of months ago. :) You can add to a
> syntax file a line that says "linter <command>", whereupon nano will
> run the given checking command on the current file when you hit ^T.
>
> So, if you put "linter cppcheck" in your c.nanorc, then ^T will run
> cppcheck on your editing buffer and highlight any issues it finds.
>
> But instead of changing the syntax file, it is probably easier to
> add "extendsyntax c linter cppcheck" to your .nanorc file.
> Instead of cppcheck you can use any other code checker.
> Is this what you meant?
>
> Benno
>
That was exactly what i was looking for. That really made my day.
Thanks! :)
--
Erik Lundin <address@hidden>