在使用Emacs编辑包含CSS,javascript和HTML的网页时,人们使用什么模式? [英] What mode do people use when using Emacs to edit web pages that contain CSS, javascript, and HTML?

查看:259
本文介绍了在使用Emacs编辑包含CSS,javascript和HTML的网页时,人们使用什么模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通常代码如下:

<html>
  <head>
    <style type="text/css">
       body { font-size:12pt; font-family: Arial;}
        ....
    </style>
    <script type="text/javascript" src="jquery.1.3.2js"></script>
    <script type="text/javascript">
    <!--
        $(document).ready(function(){
          ...
        });
        ...
    -->
    </script>
    <meta ... />
  </head>
  <body>
    <div>
      <p>
       ....
      </p>
      ...
    </div>
    ....
  </body>
</html>

我喜欢JavaScript模式的语法高亮和缩进。同样对于sgml模式的HTML。我也得到自动完成在打开的标签。 Css模式不是那么重要,所以它不是那么重要。

I like javascript-mode for the syntaxt highlighting and indenting. Likewise for sgml-mode for the HTML. Also I get auto-complete on the open tags. Css-mode is not so important so it's not so much a priority.

这是3种不同的语言和3种模式。现在我在编辑不同的部分时手动交换模式。这工作,排序。

That's 3 disparate languages and 3 modes. Right now I've been swapping modes manually as I edit different sections. This works, sort of.

任何人都有更好的方法?

Anyone got a better approach?

推荐答案

我认为mumamo通常用于此。 http://www.emacswiki.org/emacs/MuMaMo

I think mumamo is generally used for this. http://www.emacswiki.org/emacs/MuMaMo

这篇关于在使用Emacs编辑包含CSS,javascript和HTML的网页时,人们使用什么模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆