scopatz / nanorc

Improved Nano Syntax Highlighting Files
Other
3.06k stars 555 forks source link

No highlighting in md/cs #87

Open dh-nunes opened 8 years ago

dh-nunes commented 8 years ago

As the title says, I'm getting no highlighting in either markdown and c# (so far I've checked python, rst, md and c#). I cloned the repo and then added all the languages to the .nanorc file as per the instructions.

astronautlevel2 commented 8 years ago

I'm not in a position to test right now, but quickly looking through the files doesn't reveal anything wrong. I'll take a better look once I get more of a chance.

dh-nunes commented 8 years ago

Everything seems to be the same related to rst/py. If needed I'll post screenshots here.

astronautlevel2 commented 8 years ago

I'm sorry, do you mean that rust and python are or aren't working?

While we're discussing, what operating system are you using and what version of nano?

dh-nunes commented 8 years ago

Restructured text (.rst) and python are working. I'm on ubuntu 14.04 and nano is version 2.2.6 (this is the system version, maybe that is the problem?).

Forget what I meant :p

astronautlevel2 commented 8 years ago

I'm unable to replicate this on Ubuntu 14.04, nano version 2.2.6.

Can you please post what your .nanorc file looks like, as well as the csharp.nanorc and markdown.nanorc? Also, could you please tell me what the names of the files that won't highlight are?

dh-nunes commented 8 years ago
astronautlevel2 commented 8 years ago

That all looks right.

Could you humor me and remove everything from .nanorc except for the csharp and markdown include?

dh-nunes commented 8 years ago

Yup, everything is now pretty. Is something overwriting it? (It worked with just the two includes in .nanorc)

astronautlevel2 commented 8 years ago

Not sure. I'll take a look at it more tomorrow.

iHarshad commented 7 years ago

Markdown syntax highlighting throwing error.

Error in /usr/local/share/nano/markdown.nanorc on line 32: Command ""(^|[[:space:]])\-\-($|[[:space:]])"" not allowed in included file

I ran curl https://raw.githubusercontent.com/scopatz/nanorc/master/install.sh | sh on my Mac running Yosemite and then opened an existing Markdown file.

image

FIXED

Somehow, this

# misc
color magenta   "\(([CcRr]|[Tt][Mm])\)" "\.{3}" "(^|[[:space:]])\-\-($|[[:space:]])"

got split during install or some other interference into this

# misc
color magenta   "\(([CcRr]|[Tt][Mm])\)" "\.{3}" 
"(^|[[:space:]])\-\-($|[[:space:]])"
scopatz commented 7 years ago

@iHarshad pull requests welcome :)

iHarshad commented 7 years ago

@scopatz, I didn't make a pull request as the code in the repo is correct. I think after the install, I must have entered some command in one of the many terminal prompts I had opened at the time which changed the said line.

scopatz commented 7 years ago

Ahh Ok