Emacs region highlighting

て烟熏妆下的殇ゞ 提交于 2019-12-01 06:52:17

Have a look at http://www.emacswiki.org/emacs/HighlightTemporarily.

Both MarkerPens and Highlight provide functions to highlight a region.

Maybe this helps:

  • open ***scratch* buffer and enter:

(with-current-buffer "foo" (add-text-properties 1 10 '(comment t face highlight)))
  • then evaluate with C-j

Characters 1-10 will be highlited in buffer "foo".

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!