【发布时间】:2011-04-16 21:52:05
【问题描述】:
我经常有调用其他脚本语言的 shell 脚本,比如:
#!/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 程序而不仅仅是字符串常量?
【问题讨论】:
标签: bash emacs awk text-indent text-coloring