Jul 20
写了个简单的 elisp 函数 unfill-buffer,用来去掉当前 buffer 的所有单独的换行。
[coolcode lang=”lisp” download=”unfill-buffer.el”]
(defun unfill-buffer ()
“Unfill current buffer.”
(interactive “”)
(setq m (point-marker))
(beginning-of-buffer)
(while (re-search-forward “\\([^ ]+\\) *
*\\([^ ]\\)” nil t)
(replace-match “\\1\\2″))
(set-marker m 0 (current-buffer)))
[/coolcode]

七月 20th, 2007 at 10:58
这个代码显示的插件真是……连个高亮都没有,而且还加上这些个线,感觉很不爽
七月 20th, 2007 at 11:14
中国人编的… 我用 htmlize 试一下。
EDIT: 不行,wordpress 会把 inline css 删掉… 难道只能用上古时代的 color 属性?
EDIT2: 日。难道就不能有一个像 blogger 那样直接把 html 原样贴上去的编辑器么…
七月 20th, 2007 at 11:51
用pre把代码括起来……但是好像只能用color来高亮。还好vim有这个功能
七月 20th, 2007 at 12:01
htmlize 也有,但是我不想用,这不符合 xhtml 标准…
这个插件有一个好处,就是那个表格会占满 post 的宽度,让你看到。就好像 ConTeXt 的 visual debug 一样 :-D