人们在使用Emacs编辑包含CSS,JavaScript和HTML的网页时使用什么模式? [英] What mode do people use when using Emacs to edit web pages that contain CSS, javascript, and 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-mode用于语法突出显示和缩进。对于HTML的sgml模式也是如此。我也可以在打开的标签上自动完成。 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?
推荐答案
我认为妈妈通常是这样使用的。 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屋!