SliTaz SliTaz Forum

You are not logged in.

#1 2013-04-12 15:47:21

alt789
Member
Registered: 2013-04-12
Posts: 5

Syntax Highlighting in NANO...?

Somewhat new to linux and the Slitaz distro but this is possibly a question that has already been answered, however I can't seem to find it.  I mostly use NANO for editing and scripting.  Is there a way to enable NANO to highlight or another editor for Slitaz that does syntax highlighting.  I've used other distro's that already have this feature enabled but I'm not sure what needs to be done to achieve this.

Offline

#2 2013-04-12 15:59:49

subreptice
Member
Registered: 2013-03-10
Posts: 54

Re: Syntax Highlighting in NANO...?

Had you already tried that ?

http://forum.slitaz.org/topic/nanorc-does-not-have-any-effect-on-nano-usage#post-23957

And welcome :-)

Offline

#3 2013-04-12 16:00:54

alt789
Member
Registered: 2013-04-12
Posts: 5

Re: Syntax Highlighting in NANO...?

clov3r has shown me the light. 

http://how-to.wikia.com/wiki/How_to_use_syntax_highlighting_with_the_GNU_nano_text_editor

Offline

#4 2013-04-12 16:39:32

clov3r
Member
Registered: 2013-04-10
Posts: 8

Re: Syntax Highlighting in NANO...?

If your looking for an editor, I highly recommend Sublime Text as a graphical text editor. Maybe you like the cli, but this works great for me. Available as tar.bz2.

[c]# Download Sublime Text 2 from http://www.sublimetext.com/2
wget http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.1.tar.bz2
# If you aren't root, sudo su

tar -xvjf Sublime\ Text\ 2*.tar.bz2
mv Sublime\ Text\ 2/ /opt/sublime-text-2/
ln -s /opt/sublime-text-2 /usr/local/sublime-text-2
ln -s /usr/local/sublime-text-2/sublime_text /usr/local/bin/sublime_text
rm Sublime\ Text\ 2*.tar.bz2[/c]

Offline

#5 2013-04-12 18:09:23

alt789
Member
Registered: 2013-04-12
Posts: 5

Re: Syntax Highlighting in NANO...?

Thanks. I am trying to get myself more familiar with the CLI currently but I'll check out Sublime.

Just in case anyone ever comes across this thread I did finally run across a nice sample list at "https://github.com/scopatz/nanorc"

Offline

#6 2013-04-12 19:18:55

Trixar_za
Administrator
Registered: 2011-03-29
Posts: 1,506

Re: Syntax Highlighting in NANO...?

I prefer Geany myself. It's pretty lightweight while having all the features a programmer could need.

Offline

#7 2013-04-13 00:23:08

christophe
Member
Registered: 2011-04-17
Posts: 432

Re: Syntax Highlighting in NANO...?

I do not do programming, (except some awk and sql from time to time).

As a text editor, I like and use Scite and I am happy with it. It is not as sophisticated as geany, but nano or vim are not either of course.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.018 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]