通常代码类似于:
- <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模式的合成文字突出显示和缩进。同样适用于HTML的sgml-mode。此外,我在开放标签上自动完成。 Css模式并不是那么重要,所以它不是一个优先事项。
这是3种不同的语言和3种模式。现在我在编辑不同部分时手动交换模式。这有点工作。
有人有更好的方法吗?
解决方法
我认为mumamo通常用于此。
http://www.emacswiki.org/emacs/MuMaMo