Subj : Re: Weird To : digimaus From : Gamgee Date : Sun Jan 25 2026 14:53:34 Re: Re: Weird By: Gamgee to digimaus on Sat Jan 24 2026 10:23 am > -=> digimaus wrote to Gamgee <=- > > Ga> FWIW, nano does a nice job of syntax highlighting these days, too. > > di> It dooesn't support Pascal directly and the file that I found for > di> syntax coloring supports Delphi, not Turbo Pascal. > > I found this file: https://github.com/sith-ikjetil/pascal.nanorc > > Put it in /usr/share/nano (there are likely other .nanorc files there > already). > > Then, create/edit .nanorc in your home directory, and put this line in > it: > > include /usr/share/nano/*.nanorc > > After that, I found that syntax highlighting worked very nicely on some > *OLD* Turbo Pascal source files of mine from the early 90's... :-) > > Here's the catch: That syntax file expects the extension of the file > you're editing to be ".pas". in LOWERCASE. It doesn't work if the file > extension is in CAPS. If you look at the first line of the .nanorc file > you can see that specified. I didn't bother, but that could likely be > edited to include ".PAS" if desired, as old TP versions (or maybe it was > just DOS) seemed to save filenames in CAPS. > > Anyway, hope that helps. Sean, Just wondering if you saw this, and/or had any luck with it. Dan --- SBBSecho 3.34-Linux * Origin: Palantir * palantirbbs.ddns.net * Pensacola, FL * (618:250/24) .