如何在设计时在 Eclipse 中显示 HTML 页面?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5296122/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How would I show an HTML page in Eclipse at Design Time?
提问by 1.21 gigawatts
When I'm writing crappy code in eclipse and I'm looking at a website for help I am constantly flipping back and forth between the browser and eclipse. To help me write crappy code faster is there a way to have a View that has a web page in it? I need to be able to set the URL and if I'm navigating around the site have a button to have it return to the original URL. So a URL Address box and 1 favorite link.
当我在 eclipse 中编写蹩脚的代码并且我正在查看一个网站寻求帮助时,我经常在浏览器和 eclipse 之间来回切换。为了帮助我更快地编写糟糕的代码,有没有办法让视图中包含网页?我需要能够设置 URL,如果我在网站上导航,有一个按钮可以让它返回到原始 URL。所以有一个 URL 地址框和 1 个最喜欢的链接。
BTW I'm not a Eclipse plugin developer.
顺便说一句,我不是 Eclipse 插件开发人员。
回答by Alex_M
- menu: window / show view / other ...
- enter browser in the search box on top
- select internal web browser
- 菜单:窗口/显示视图/其他...
- 在顶部的搜索框中输入浏览器
- 选择内部网络浏览器
i would recommend you to install the web development tools
我建议您安装 Web 开发工具
- menu: help / install new software
- select the software site for your eclipse installation (in my case it's "Helios - http://download.eclipse.org/releases/helios")
- enter "web" in the search bar (and wait a little bit) and select "Eclipse Web Developer Toos" and "Web Page Edtior (Optional)"
- 菜单:帮助/安装新软件
- 为您的 Eclipse 安装选择软件站点(在我的例子中是“Helios - http://download.eclipse.org/releases/helios”)
- 在搜索栏中输入“web”(稍等片刻)并选择“Eclipse Web Developer Toos”和“Web Page Edtior (Optional)”
回答by Kantawala Aliasgar
Just open your HTML file with web page editor. This will open in view where you can view the html code as well as the design it is going to create at run time.
只需使用网页编辑器打开您的 HTML 文件。这将在视图中打开,您可以在其中查看 html 代码以及它将在运行时创建的设计。