scopatz / nanorc

Improved Nano Syntax Highlighting Files
Other
3k stars 549 forks source link

Please support files without file ending #400

Open rubyFeedback opened 1 year ago

rubyFeedback commented 1 year ago

Please support files without file ending.

I am struggling to find out which syntax to use for this.

It is easy to make things work on e. g. .md files but I don't know how to enable nano highlighting via files that have no file ending. It would be great if the README can explain this.

CodeMan99 commented 1 year ago

GNU nano supports extensions or shebang lines. For example, see this header configuration in sh.nanorc. See also, the official man nanorc.

davidhcefx commented 4 months ago

@rubyFeedback Can you give an example of which language are you working on? Does that kind of file has the same pattern at the first line? Please provide more details so that somebody can create a fix for this.