gedit 为CSS 文件添加换行符

2010-04-15 xiao H Posted in 日常桌面

今天在用gedit 编辑一个CSS 文件时遇到原文件是经过压缩的,全文没有空格还行看着那叫一个眼晕啊,想改点东西非常的痛苦。
还好gedit 有换行符可用,用gedit 的替换功能,将所有} 替换为} /r 这样gedit 就能在每行css 语句结束的地方自动换行了。

gedit 中的特殊字符
\n
Specifies a new line.

\t
Specifies a tab character.

\r
Specifies a carriage return

\\
The backslash character itself must be escaped if it is being searched for.

For example, if you are looking for the “\n” literal, you will
have to type “\\n” in the Search for field. Or if you are
looking for a sequence of backslashes, you will have to double the number of
searched backslashes.





标签:, ,

  1. francis 说道:

    啊哈,乍一看还以为是一个GEdit的插件呢。

    用惯了再用GEdit,最不习惯的就是要自己写缩进啊~

我来说两句

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">