[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] Code checker

From: Benno Schulenberg
Subject: Re: [Nano-devel] Code checker
Date: Sun, 19 Oct 2014 21:34:05 +0200

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?


-- - Choose from over 50 domains or use your own

reply via email to

[Prev in Thread] Current Thread [Next in Thread]