Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Emacs' alternative of vi's

  1. May 27, 2006 #1
    I'm looking for an alternative of vi's command: :hi Comment.... in Emacs,
    anyone knows?

    p.s Is there a method to turn off background complitely in Emacs?

  2. jcsd
  3. May 29, 2006 #2


    User Avatar

    What does the vi command do?
  4. May 29, 2006 #3
    oh, sorry for not mentioning. It highlights all the comments in a text.
  5. May 29, 2006 #4


    User Avatar

    In emacs you generally have .el (elisp) files which, as one option - stuff will appear as buttons at the top of your window, allow you to highlight...

    eg. If you have the matlab.el file, you can highlight all the matlab commands...

    Also lots of these will be built in (with the emacs compilation), eg. global highlighting for c++ (.cc) files and .tex files + executables .sh

    Plain text though, I'm not sure...

    Assuming it's .txt, hit the Options button at the top of the window and switch on the global highlighting - though I can't think waht it would highlight in a standard txt file?
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?

Similar Discussions: Emacs' alternative of vi's
  1. Alternating current (Replies: 2)

  2. Ipod alternatives (Replies: 10)