使用emacs / HTML模式可以转发/反向链接? [英] Forward/Reverse link possible with emacs/HTML mode?

查看:110
本文介绍了使用emacs / HTML模式可以转发/反向链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用emacs,编辑HTML文件非常有用。我使用'Safari'(我是Mac用户)来检查HTML文件是否正确呈现。



我一直错过AucTeX的前向/后向链接pdf / tex文件。我可以将emacs / LaTeX文件移动到相应的pdf文件,反之亦然。例如,当我在tex源代码上点击字符串'abc'时,auc-tex在pdf文件中找到abc字符串,而另一种方法是可能的。



有没有办法在emacs中做类似的事情?我的意思是,是否有任何可以在html文件和浏览器之间连接的工具/模式?

解决方案

使用

  Mx browse-url-of-file 

通常没有约束,所以我使用...

 (global-set-key kbdMP)'browse-url-of-file)

要全局绑定Alt + Shift + p .. aspreview in browser


With emacs, it's pretty useful to edit HTML file. And I use 'Safari' (I'm a Mac user), to check if the HTML file is rendered correctly.

I always miss the AucTeX's forward/reverse link with pdf/tex files. I can shift-click on emacs/LaTeX file to corresponding pdf file, and vice versa. For example, when I shift-click on string 'abc' on tex source code, auc-tex finds the 'abc' string in the pdf file, and the other way round is possible.

Is there any way to do similar things in emacs? I mean, is there any tool/mode that can connect back/forth between html file and browser?

解决方案

Use

M-x browse-url-of-file

It's generally not bound, so I use...

(global-set-key (kbd "M-P") 'browse-url-of-file)

To globally bind Alt+Shift+p .. as "preview in browser"

这篇关于使用emacs / HTML模式可以转发/反向链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆