[英]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模式是否具有此功能。
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有用的东西。
There might be more, but those are what I need mostly. 可能还有更多,但是这些是我最需要的。
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方言。
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本身。
M-% is not easy? M-%不容易吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.