2010-09-24 60 views
5
縮進腳本中的腳本

我經常調用其​​他腳本語言,像這樣的shell腳本:着色/在Emacs

 

#!/bin/bash 
cat somefile|awk ' 
BEGIN 
{ 
    #This line is not auto-indented and is colored as a string constant. 
    ... 
} 
{ 
    #Same with this line. 
    ... 
}' 

echo "More Bash code here." 
... 
 

有沒有一種方法,使Emacs的認識awk的字符串作爲awk程序,而不是隻是一個字符串常量?

回答

1

我使用mmm-modeMason文件(混合HTML和Perl);也許它可以用於你的情況呢?