unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Emacs as PHP, HTML and JS editor
@ 2017-05-30  7:02 Thierry LEURENT
  2017-05-30  7:35 ` Nikolay Kudryavtsev
  2017-05-30  7:39 ` Valentijn van de Beek
  0 siblings, 2 replies; 4+ messages in thread
From: Thierry LEURENT @ 2017-05-30  7:02 UTC (permalink / raw)
  To: help-gnu-emacs

Hello,

I am currently working on extremely poorly written website.
It consists of pieces of code taken from the internet and pasted. It's 
illegible.
I would like to find a configuration of emacs that allowed me to work at 
the same time in PHP, HTML and JS.
But also reformat and clean the code.

Thank you

-- 
Thierry LEURENT



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Emacs as PHP, HTML and JS editor
  2017-05-30  7:02 Emacs as PHP, HTML and JS editor Thierry LEURENT
@ 2017-05-30  7:35 ` Nikolay Kudryavtsev
  2017-05-30  7:37   ` Krishnakant
  2017-05-30  7:39 ` Valentijn van de Beek
  1 sibling, 1 reply; 4+ messages in thread
From: Nikolay Kudryavtsev @ 2017-05-30  7:35 UTC (permalink / raw)
  To: Thierry LEURENT, help-gnu-emacs

Web-mode <http://web-mode.org/> is de facto standard for such use case.

-- 
Best Regards,
Nikolay Kudryavtsev



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Emacs as PHP, HTML and JS editor
  2017-05-30  7:35 ` Nikolay Kudryavtsev
@ 2017-05-30  7:37   ` Krishnakant
  0 siblings, 0 replies; 4+ messages in thread
From: Krishnakant @ 2017-05-30  7:37 UTC (permalink / raw)
  To: Nikolay Kudryavtsev, Thierry LEURENT, help-gnu-emacs

YOu can use web-mode as the major mode and then have company-tern with 
tern setup on your machine.

There are a lot of settings in web-mode that make it best for all 
purpose work.

But there is an individual php-mode if I am not mistaken.

Happy hacking.

Krishnakant.



On Tuesday 30 May 2017 01:05 PM, Nikolay Kudryavtsev wrote:
> Web-mode <http://web-mode.org/> is de facto standard for such use case.
>




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Emacs as PHP, HTML and JS editor
  2017-05-30  7:02 Emacs as PHP, HTML and JS editor Thierry LEURENT
  2017-05-30  7:35 ` Nikolay Kudryavtsev
@ 2017-05-30  7:39 ` Valentijn van de Beek
  1 sibling, 0 replies; 4+ messages in thread
From: Valentijn van de Beek @ 2017-05-30  7:39 UTC (permalink / raw)
  To: Thierry LEURENT; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 629 bytes --]

On 30/05 09:02, Thierry LEURENT wrote:
> Hello,
>
> I am currently working on extremely poorly written website.
> It consists of pieces of code taken from the internet and pasted. It's
> illegible.
> I would like to find a configuration of emacs that allowed me to work at
> the same time in PHP, HTML and JS.
> But also reformat and clean the code.
>
> Thank you
>
> --
> Thierry LEURENT

Hello Thierry,

I find that the web-mode.el[1] package works rather well for these
things. It allows you to edit PHP, HTML, CSS & JavaScript at the same
time.

I hopes this helps you a bit.

Valentijn van de Beek

[1] http://web-mode.org/

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-05-30  7:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-30  7:02 Emacs as PHP, HTML and JS editor Thierry LEURENT
2017-05-30  7:35 ` Nikolay Kudryavtsev
2017-05-30  7:37   ` Krishnakant
2017-05-30  7:39 ` Valentijn van de Beek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).