[mc] syntax highlight problem

freebird freebird at disroot.org
Mon Dec 19 13:13:01 UTC 2022


On Mon, 19 Dec 2022 12:36:36 +0100
Grzegorz Szymaszek <gszymaszek at short.pl> wrote:

> Hi,
> 
> On Mon, Dec 19, 2022 at 04:50:09PM +0530, freebird via mc wrote:
> > AS A USER, [...] Using mcedit, spice and markdown syntax is not
> > (automatically) highlighted. I can select the syntax using
> > F9->options->syntax highlighting->Md File.
> 
> Do you have a Syntax file in your mc config directory? You can find the
> relevant path using "mc -F", it will most likely be "~/.config/mc/". If
> such file exists, does it contain something like the below?
> 
>     file ..\*\\.cir$ Spice\scircuit
>     include spice.syntax
> 
Yes the file "~/.config/mc/syntax" contains the above lines.

> Spice and Markdown are relatively recent additions, so I suspect an
> outdated custom Syntax file.
> 
> > AS ROOT,
> > mc automatically detects ALL the files and applies the syntax.
> 
> Which version of mc do you run as root: the one you have compiled or the
> one from Debian packages?
> 
I have removed the one (4.8.26) from debian packages, because the new one works well except the said problem. 
  

> -- 
> Grzegorz Szymaszek


-- 
freebird <freebird at disroot.org>


More information about the mc mailing list