简体   繁体   English

使用emacs / XML模式可以进行正向/反向链接吗?

[英]Forward/Reverse link possible with emacs/XML mode?

I asked similar question about HTML , but I want to know if emacs XML mode has the feature. 我问过有关HTML的类似问题,但我想知道emacs XML模式是否具有此功能。

  • Is there 'Mx browse-url-of-file' equivalent in XML mode? 在XML模式下是否有等效的“ Mx浏览网址”? I mean, is there any key that can pop up xml editor (XMLEditor or similar)? 我的意思是,有没有可以弹出xml编辑器(XMLEditor或类似工具)的键?
  • Is there any XML editing tool to enable the reverse link back to emacs XML mode? 是否有任何XML编辑工具可启用反向链接回到emacs XML模式?

ADDED 添加

Based on slomojo's comment, I think if emacs' nXML mode can do whatever my XML editor (XMLEditor with Mac, XML Editor with PC) can do, I don't need this forward/reverse link. 根据slomojo的评论,我认为如果emacs的nXML模式可以完成我的XML编辑器(Mac上的XMLEditor,PC上的XML Editor)可以执行的工作,则不需要此正向/反向链接。

These are what I found useful with XMLEditor. 这些是我发现对XMLEditor有用的东西。

  • collapsable node : I can collapse a whole/part of a tree if necessary. 可折叠节点:如有必要,我可以折叠整个树的一部分。
  • Grammar checker : If the XML has DTD, XML Editor checks if XML tree follows the DTD. 语法检查器:如果XML具有DTD,则XML编辑器将检查XML树是否遵循DTD。
  • Easy search and replace 易于搜索和更换

There might be more, but those are what I need mostly. 可能还有更多,但是这些是我最需要的。

  1. nxml-mode has built in support for hiding, but by default it is set up for DocBook, you need to customize it for anything else. nxml-mode内置了对隐藏的支持,但是默认情况下它是为DocBook设置的,您需要针对其他任何内容对其进行自定义。 You can also customize outline-mode to recognize XML tags, or use hs-minor-mode to hide and show different levels of tags. 您还可以自定义大纲模式以识别XML标签,或使用hs-minor-mode隐藏和显示不同级别的标签。 The latter two can also be used with xml-mode. 后两者也可以与xml-mode一起使用。 See here for details on how to set it up (the instructions are for XHTML, but can be adapted for any XML dialect. 有关如何设置的详细信息, 请参见此处 (说明适用于XHTML,但可以适用于任何XML方言。

  2. nxml-mode can check against RelaxNG schemas, so you need to convert your DTDs first. nxml-mode可以检查RelaxNG模式,因此您需要首先转换DTD。 Use trang to convert, and see the nxml manual if you want to set things up so that your files get automatically associated with this schema. 使用trang进行转换,如果要进行设置,以使文件自动与此模式关联,请参见nxml手册。 Without a schema, it will warn you if the file is not valid XML which is useful in itself. 如果没有模式,它将警告您文件是否为有效的XML本身。

  3. M-% is not easy? M-%不容易吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM