Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

C/C++ syntax highlighting doesn't work #12

Closed
OrdinaryMagician opened this issue Jul 15, 2013 · 8 comments
Closed

C/C++ syntax highlighting doesn't work #12

OrdinaryMagician opened this issue Jul 15, 2013 · 8 comments

Comments

@OrdinaryMagician
Copy link

Any C or C++ source file appears with no highlighting at all.

@OrdinaryMagician
Copy link
Author

Somehow not including nanorc.nanorc seems to fix the issue, so the problem must be in there.

@OrdinaryMagician
Copy link
Author

And it seems that assembly highlighting doesn't work unless c highlighting is not included.

Boy this is a big mess.

@OrdinaryMagician
Copy link
Author

Actually, it seems that a lot of files cause conflicts with each other at random. I'm finding lots of issues through trial and error. And somehow nano stays silent about all of it, not reporting any errors.

@scopatz
Copy link
Owner

scopatz commented Jul 15, 2013

Hi @OrdinaryMagician, are you including these files in you ~/.nanorc file? See the readme for more info. I have never experienced any of the issues that you are mentioning when the *.nanorc files are properly included in my ~/.nanorc. In fact the only way syntax highlighting doesn't show up (and nano doesn't display an error) is if I haven't actually included the syntax highlighting file.

In many ways, it makes sense that you would see something when you include the nanorc.nanorc file, because all of these are *.nanorc files.

In any event, I think that this is a configuration issue on your end. I hope this helps.

@OrdinaryMagician
Copy link
Author

I simply have all the files included on my nanorc in alphabetical order. Maybe it's something about the order, I don't know.

edit: nevermind, I just seemed to have some few duplicate lines for some reason. By the way, Fish and Markdown files seem to have errors in lines 4 and 12 respectively.

@scopatz
Copy link
Owner

scopatz commented Jul 15, 2013

Glad that you figured this out! Is it OK to close? Also, pull requests very welcome if you have fixes for the broken lines.

@OrdinaryMagician
Copy link
Author

I could only figure out the Markdown one, and I don't know how to do pull requests so I'll just say there should be a ) and a " at the end of line 12.

@scopatz
Copy link
Owner

scopatz commented Jul 15, 2013

Great, thanks! I have fixed it.

@scopatz scopatz closed this as completed Jul 15, 2013
galenguyer added a commit to davidhcefx/nanorc that referenced this issue Feb 24, 2024
enh(install): Use defined constant as path
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants