Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #17015

Re: Editor with syntax highlighting for HTML, CSS, Javascript AND PHP

From Ben Bacarisse <ben.usenet@bsb.me.uk>
Newsgroups comp.lang.php
Subject Re: Editor with syntax highlighting for HTML, CSS, Javascript AND PHP
Date 2016-09-06 16:16 +0100
Organization A noiseless patient Spider
Message-ID <87poohvz1a.fsf@bsb.me.uk> (permalink)
References <b0661066-6fb6-42ab-a9fd-1e1c7867a460@googlegroups.com>

Show all headers | View raw


bit-naughty@hotmail.com writes:

> If I'm writing a website which has ALL these languages on it, is there
> any editor for Linux which will correctly detect ALL of them, and
> provide the colours, with DIFFERENT COLOUR SCHENES FOR EACH LANGUAGE -
> ie. Javascript has to look different from PHP!
> Will Emacs do it, with the appropriate plugins or something....?
> Surely *someone*, *SOMEWHERE* must have solved this problem by now,
> with the amount of websites being developed all oveer the world....?

Emacs does it with web mode, but the colours are deliberately chosen to
be similar.  For example, by default, PHP and JS keywords are both blue.
I don't know if, with the one mode, you can customise the different
languages.  I've never looked.

I prefer to edit JS in stand-alone files because the emacs mode provides
very good real-time feedback, but sometimes you do have all of the
syntaxs together.

-- 
Ben.

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Editor with syntax highlighting for HTML, CSS, Javascript AND PHP bit-naughty@hotmail.com - 2016-09-06 07:41 -0700
  Re: Editor with syntax highlighting for HTML, CSS, Javascript AND PHP Ben Bacarisse <ben.usenet@bsb.me.uk> - 2016-09-06 16:16 +0100
    Re: Editor with syntax highlighting for HTML, CSS, Javascript AND PHP Tim Streater <timstreater@greenbee.net> - 2016-09-06 16:24 +0100
  Re: Editor with syntax highlighting for HTML, CSS, Javascript AND PHP Dave Pyles <dave@user.invalid> - 2016-09-06 11:26 -0400
    Re: Editor with syntax highlighting for HTML, CSS, Javascript AND PHP bill <william@TechServSys.com> - 2016-09-08 07:42 -0400
      Re: Editor with syntax highlighting for HTML, CSS, Javascript AND PHP Michael Vilain <mev94303y@yahoo.com> - 2016-09-09 08:18 -0700
  Re: Editor with syntax highlighting for HTML, CSS, Javascript AND PHP jim@Antec.(none) (Jim Hicks) - 2016-09-14 17:04 +0100
  Re: Editor with syntax highlighting for HTML, CSS, Javascript AND PHP "Beauregard T. Shagnasty" <a.nony.mous@example.inwalid> - 2016-09-14 16:28 +0000
    Re: Editor with syntax highlighting for HTML, CSS, Javascript AND PHP "Teodor V." <teodor-see-signature@invalid.invalid> - 2016-09-14 19:44 +0200
      Re: Editor with syntax highlighting for HTML, CSS, Javascript AND PHP bobm3@worthless.info - 2016-09-14 21:03 -0400
  Re: Editor with syntax highlighting for HTML, CSS, Javascript AND PHP "dilip.bakotiya@gmail.com" <dilip.bakotiya@gmail.com> - 2017-01-10 23:19 -0800

csiph-web