如何在xml文档中启用jsp分区?
我创建了编辑器,它扩展了 JSP 编辑器。我添加了自己的内容辅助,但是我希望能够打开 XML 文档,使用我的编辑器编辑它们,以及提供内容辅助最重要的是什么。问题是,在编辑 xml 时,我没有从 JSP 标记获得内容帮助。是否有可能在 xml 文档中启用 JSP 分区?因为我认为这会解决问题,当文本被正确分区时,我会得到正确的建议。
I have created editor, which extends JSP Editor. I have added my own content assist, however I would like to be able to open XML documents, edit them using my editor and what is the most important to have content assist available. The problem is that, while editing xml I do not get content assist from JSP tags. Is there any possibility to enable JSP partitioning in xml document? Because I think it would resolve the problem, when text is properly partitioned, I obtain proper proposals.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通常,安装了 WTP 插件的 eclipse 中的 JSP 编辑器会自动识别以下文件扩展名。
如果您要添加的文件不在列出的文件扩展名中,您可以将其添加到 eclipse 中的 contenttypes
[ 窗口 >首选项>一般>内容类型:在右侧窗格中展开 Text ,选择 JSP ,添加您尝试在 JSP 编辑器中打开的文件扩展名
Usually Following file extensions are automatically recognized by JSP Editor in eclipse with WTP plugin installed.
If the file you are adding is not in the listed file extesions you can add it to contenttypes in eclipse
[ Window > Preferences > General > Content Types : In right pane expand Text , Select JSP , add the file extension you are trying to open in JSP editor