1. create a .nanorc file in $HOME
2. Sample contents
include /usr/share/nano/asm.nanorc
include /usr/share/nano/c.nanorc
include /usr/share/nano/groff.nanorc
include /usr/share/nano/html.nanorc
include /usr/share/nano/java.nanorc
include /usr/share/nano/man.nanorc
include /usr/share/nano/mutt.nanorc
include /usr/share/nano/nanorc.nanorc
include /usr/share/nano/patch.nanorc
include /usr/share/nano/perl.nanorc
include /usr/share/nano/pov.nanorc
include /usr/share/nano/python.nanorc
include /usr/share/nano/ruby.nanorc
include /usr/share/nano/sh.nanorc
include /usr/share/nano/tex.nanorc
include /home/rprajapa/bin/ks.nanorc
include /home/rprajapa/bin/ksh.nanorc
the syntax highlighting files are in /usr/share/nano
It did not have files for .ks and .ksh , so I copied the sh.nanorc to ksh.nanorc and ks.nanorc
and edited its contents.. ie also replace sh with ksh and .ks respectively.
(for some reason it does not like $HOME so had to put absolute path /home/rprajapa)
Thats all.. Enjoy.