LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-11-2005, 09:42 PM   #1
yangsongx
LQ Newbie
 
Registered: Jan 2005
Distribution: Slackware
Posts: 6

Rep: Reputation: 0
Angry 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!
 
Old 03-12-2005, 02:01 AM   #2
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Distribution: Fedora Core, Slackware, Mac OS X, Debian, OpenSUSE
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
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
-ls login new pty
-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.
 
Old 03-12-2005, 03:22 PM   #3
mcd
Member
 
Registered: Aug 2003
Location: Denver, CO
Distribution: CentOS, Debian
Posts: 825

Rep: Reputation: 33
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
 
Old 03-24-2005, 07:49 AM   #4
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Distribution: Fedora Core, Slackware, Mac OS X, Debian, OpenSUSE
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
Cool.

Learned something new.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vim syntax highlight fails after debian upgrade darknails Linux - Software 7 05-19-2009 04:11 AM
Emacs Syntax highlight UltraSoul Linux - Software 1 07-11-2005 09:19 AM
Gnome error - now I cant get xterm,kde,gnome covertops Linux - Newbie 3 02-24-2005 07:58 AM
Is there any app to convert emacs's syntax highlight def. file to vim's def. file ? cyu021 Linux - Software 0 10-05-2004 11:02 PM
Need help using xterm or gnome-terminal with -e option?? Rickj42 Programming 1 08-12-2003 12:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration