VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » IT - Software » IT, programs, coding
GNU Nano With Improved Syntax Highlighting DistroTube

GNU Nano With Improved Syntax Highlighting DistroTube

FBTwitterReddit

video description

Rating: 4.5; Vote: 2
GNU Nano With Improved Syntax Highlighting DistroTube This video was published on Patreon one week prior to being published on YouTube, as a perk and a thank you to my supporters on Patreon. - DESCRIPTION: Want improved syntax highlighting in GNU Nano? I will show you a dead simple way to get this working. - https://github.com/scopatz/nanorc/ https://www.reddit.com/r/linux/comments/b724zx/gnunano_looks_awesome_with_syntax_highlight_and/
Date: 2022-03-30

Comments and reviews: 10


Hey Distrofriends,
I have a question. I just tried to use the new Green-Recorder app in Wayland ( in the Fedora 30-Beta ). I wanted to do a demo showing how I use my computer. But the final published video is barely viewable. The resolution is just awful. And it only has a window mode, cutting out the top panel, which is needed in the video to show how everything works. I tried to make the same video in simple-screen recorder and the final published video was just a black screen. The music was there and the mouse & cursor worked great, LOL !
So which screen-recorder should I try next in Wayland. Or am I just stuck having to show how Fedora 30-Beta works in Xorg ??

reply

Hey, Thank you very much. This is exactly what I was looking for. I was hoping you could help me with an error. every time I open a file it gives me an error on all of the line commands. here is a small sample. Any idea why this is?
Error in /home/gperry/.nano/sh.nanorc on line 8: Command -linter- not understood-
Error in /home/gperry/.nano/tcl.nanorc on line 5: Command -comment- not understood-
Error in /home/gperry/.nano/tex.nanorc on line 5: Command -comment- not understood-
Error in /home/gperry/.nano/tex.nanorc on line 7: Command -linter- not understood-
Error in /home/gperry/.nano/xml.nanorc on line 7: Command -comment- not understood

reply

Excellent tutorial. Thanks for the help.
Though I had to dig deeper for a problem I faced on the Mac.
The installation command won't run. After many hours of fiddling around, I found out that the pre-installed version of Nano in MacOS is pretty old; V2.0.6 to be exact.
So Here's what solved the problem:
Install the new version using Homebrew:
$ brew install nano
After this step, running the command -nano [file name]- would still launch the old version.
To point the command to the new version, you need to clear the hash or something like that.
$ hash nano
Now you're all set to follow the steps in this video.
Hope it helps.

reply

Very helpful (as usual), Derek. Thanks! I'm watching on my latest -pawnshop rescue- laptop, a Dell Latitude E5570 with Fedora 29 xfce4 and qtile. It was quick to set up, because I swiped the SSD from a dying laptop that already had Fedora on it. ;-> But even after a BIOS update the usb 3.0 jacks won't power up and I don't know yet how to fix that. But it has a good usb 2.0 jack and Bluetooth, so I'll get by. Cheers, Andy.
reply

Thank you. It's worth to have a look at the redidt post to get an even nicer nano. You can put the nanorc under -/.config/nano/ with the remainder of the files (actually, a copy of nanorc will be already there) and use a much leaner construction: include -$HOME/.config/nano/-.nanorc- instead of nigh a hundred of entries. Don't be alarmed when the highlighting doesn't show when editing the nanorc in nano.
reply

00:00 - 00:37 - Intro
00:38 - 02:08 - History of vim and nano
02:09 - 04:25 - GNU nano
04:26 - 04:40 - Nice nugget
04:46 - 06:00 - GNU nano improved in action
06:01 - 06:38 - GNU nano improved with Haskell
06:39 - 07:10 - GNU nano improved with Python
07:11 - 08:30 - The guy on Reddit had line numbers...
08:31 - 09:30 - In conclusion
09:31 - 10:14 - Closing

reply

It will be nice if you do video on JOE - Joe's Own Editor: joe-editor.sourceforge.io
JOE has a lot of features (including highlighting; but also Hex edit mode, disk edit, block select, etc) and best of all - shortcuts are like in WordStar - and we all know that WordStar is GRRM favorite tool for killing Starks :D

reply

NANO - the only CLI based text editor worth it's salt. If you want more, just go for a GUI based one or an IDE.
This comment brought to you by the Vi/Vim/Emacs sucks group. Just use Nano if you need something really lightweight guys, don't bother with Vim and Emacs.

reply

im on MInt and i get some errors when opening nano after the install. doesn't recognize command -comment- in some rc files and set linenumbers doesnt work either. but still let's me load nano and the colors work.
EDIT: fixed most errors upgrading to nano v.2.7.4

reply

4:15
>put a bunch of lines in your .nanorc
or you could put one line... -import nano/highlighting/dir/--
this exactly what I've done...
also DT i'd recommend covering the Awesome-lists on git if you have not.. people need to know about them.

reply
Add a review, comment






Other channel videos