help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Major and minor modes


From: tomas
Subject: Re: Major and minor modes
Date: Wed, 14 Jun 2017 11:58:54 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, Jun 14, 2017 at 11:25:07AM +0200, Emanuel Berg wrote:
> > This is a well-known problem for those poor
> > souls dealing with "things Web", where you
> > have nested languages (CSS and Javascript in
> > HTML, HTML in PHP and things)
> 
> You said it: poor souls.

But very subjective anyway. I half-regret having said that.

> Is it unavoidable to nest languages?

No. Is it unavoidable to use computers? No. Some like doing
that, though.

> PHP I see the situation because it produces HTML
> from inline code. With CSS tho isn't a reference
> in the HTML file enough?

Yes. Does the standard allow embedding? Yes. Some people like
doing it differently, and luckily, neither you nor me are entitled
(or empowered) to impose that.

Moreover, in this case, if you want to understand some random
page you got from the Web (assuming you want to stay with your
beloved Emacs), mixed-mode will come in handy. I know I appreciate
it, for sure.

> Another example are Perl scripts to do
> databases and have SQL commands executed.

There are tons of those -- everything "domain specific language"
goes a bit in that direction.

> JavaScript obviously I only did at computer
> school and as soon as it was done I drank ten
> beers to make sure I forgot all about it...

Don't underestimate Javascript. There's a lot to learn from that
(in the negative, but also in the positive).

Actually... don't underestimate anything ;-D

Cheers
- -- t
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAllBCN4ACgkQBcgs9XrR2kYarQCdEM+KuWUrvyUA+xKXaCw5m3uM
vtMAnAy4qjoK6yW2FNau/YujixJMLmo/
=L3Vn
-----END PGP SIGNATURE-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]