xterm under GNOME not syntax-highlight.
Hello everyone.
i am using Slack 10.0. The xterm under KDE works fine,and have syntax hightlighting feature. But the xterm under GNOME didn't have syntax hightlighting.(so pity!) And i prefer GNOME than KDE. I'd like to know how to let xterm under GNOME have syntax highlighting. Thank you! |
Are you sure there is no syntax highlighting?
I think it is just the colour of syntax highlight is same as background, therefore you can't see it. You can meddle with xterm properties. Open a terminal, and man xterm for the options This is what I use in fluxbox, Code:
xterm -ls -bg black -bd yellow -fg gray -cr red -hc yellow -ms blue -sl 200 -pc -bg background colour -bd bold colour -fg foreground colour -cr the blinking thing -hc highlight colour -ms mouse curser colour -sl scroll line (200 lines to remember) -pc can't remember. |
you can also edit ~/.Xdefaults to set that stuff, so you don't have to type it in every time you start an xterm. here's mine, and you can google around for more examples:
aterm*cursorColor:blue aterm*colorMode:true aterm*pointerColor:yellow aterm*pointerColor2:yellow aterm*borderWidth:5 aterm*tinting:#ffffff aterm*loginShell:true aterm*transparent:true aterm*shading:80 aterm*background:white aterm*foreground:light blue aterm*scrollBar:false aterm*fade: 60 !aterm*font: 9x15 aterm*font: 8x13 aterm*saveLines:4500 aterm*geometry:85x30 aterm*truetintingType:True ! ! colors ! aterm*color0:rgb:00/00/00 aterm*color1:rgb:cc/66/66 aterm*color2:rgb:66/cc/66 aterm*color3:rgb:cc/cc/66 aterm*color4:rgb:66/66/cc aterm*color5:rgb:cc/66/cc aterm*color6:rgb:66/cc/cc aterm*color7:rgb:cc/cc/cc aterm*color8:rgb:63/33/33 aterm*color9:rgb:ff/99/99 aterm*color10:rgb:99/ff/99 aterm*color11:rgb:ff/ff/99 aterm*color12:rgb:99/99/ff aterm*color13:rgb:ff/99/ff xterm*cursorColor:blue xterm*colorMode:true xterm*pointerColor:yellow xterm*pointerColor2:yellow xterm*borderWidth:0 xterm*tinting:#ffffff xterm*loginShell:true xterm*transparent:true xterm*shading:80 xterm*background:#dcdcdc xterm*foreground:#800000 xterm*scrollBar:false xterm*fade: 60 !xterm*font: 9x15 xterm*font: 8x13 xterm*saveLines:4500 xterm*geometry:85x30 xterm*truetintingType:True ! ! colors ! xterm*color0:rgb:00/00/00 xterm*color1:rgb:cc/66/66 xterm*color2:rgb:66/cc/66 xterm*color3:rgb:cc/cc/66 xterm*color4:rgb:66/66/cc xterm*color5:rgb:cc/66/cc xterm*color6:rgb:66/cc/cc xterm*color7:rgb:cc/cc/cc xterm*color8:rgb:63/33/33 xterm*color9:rgb:ff/99/99 xterm*color10:rgb:99/ff/99 xterm*color11:rgb:ff/ff/99 xterm*color12:rgb:99/99/ff xterm*color13:rgb:ff/99/ff xterm*color14:rgb:99/ff/ff xterm*color15:rgb:ff/ff/ff ! ! emacs ! emacs*Background: DarkSlateBlue emacs*Foreground: Wheat emacs*pointerColor: Orchid emacs*cursorColor: Orchid emacs*bitmapIcon: on emacs*font: fixed emacs.geometry: 160x52 |
Cool. :cool:
Learned something new. :) |
All times are GMT -5. The time now is 05:44 AM. |