Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7534101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T05:55:11+00:00 2026-05-30T05:55:11+00:00

I am using emacs 23 -nw and xterm installed on Debian Squeeze. I need

  • 0

I am using emacs 23 -nw and xterm installed on Debian Squeeze. I need highlighting with python but I don’t have it. How can I enable it?

Edit:
Thanks for all answers, the problem is that

  • I have googled a lot, really.
  • I have the code on a file with extension .py
  • The script starts with #!/usr/bin/python, as one of the the answers points I have changed to !#/usr/bin/env python
  • I used M-x and tried to find something related to python, well there many options which do not solve my problem.

Sorry my question was not very precise and I even accept -10 but I don’t have highlight which would give me red highlight for lines starting # etc. To be more precise I have a very a dull highlight; lines with # are white, lines between “”” “”” are green, some of the variable names are yellow but don’t know why not all. [import, as, from] are light blue, [open, max, and other function names] are dark blue etc. And besides my 200 lines of code is working.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T05:55:13+00:00Added an answer on May 30, 2026 at 5:55 am

    If you run Emacs from xterm with emacs -nw, you’ll have a different color layout than if you run the same color mode in an X window. Differences include big changes in the highlighting of comments, different colors assigned to various keywords and (rarely in my experience, though Python comments seem to fall into this category) failure to highlight some elements.

    I’m not really sure why this happens, but it doesn’t seem to be a problem on your end since it’s consistent on every machine I’ve worked on. If it really bugs you, and you really, really want to keep running from xterm, take a look at the color-theme module, it may help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been using Emacs for more than three years now but it still
I'm using emacs for python, and I'd like to have a nice useable shell
I am using emacs 24 on Windows 7 and have installed technomancy's clojure-mode along
I am using emacs in Ubuntu. How can I remap META to the ALT
I'm using emacs tramp mode to remotely edit files over ssh. The problem is
I am now using Emacs 23 with visual-line-mode turned of for text editing but
Short version: When using emacs' xterm-mouse-mode, Somebody (emacs? bash? xterm?) intercepts xterm's control sequences
I recently started using Emacs for editing. When I edit english-language files (like program
Basically I am using emacs on remote server (my school) but when I logged
I have started using emacs org-mode recently to maintain my TODO lists. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.