GeeCON Prague 2014*
The moose likes IDEs, Version Control and other tools and the fly likes Designing HTML pages in eclipse Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Designing HTML pages in eclipse" Watch "Designing HTML pages in eclipse" New topic
Author

Designing HTML pages in eclipse

nirjari patel
Ranch Hand

Joined: Apr 23, 2009
Posts: 374
I am creating HTML page in eclipse.
Can I include HTML tags from eclipse ? By that I mean, if I want to include JSP tags (scriptlet, include, expression or declaration), I can open snippet view and include these tags from there in to the JSP page.
Can I include HTML tags like this ? Is there any view which contains all the HTML tags and I can include it directly in HTML page ?
I tried top check in different views, but could not find any.

Thanks
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61301
    
  66

Please be sure to ask IDE questions in the IDEs forum. I have moved this post there for you.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5835
    
    7

Yes, you can include HTML tags in an HTML page, after all, that is what an HTLM page is. Also, you can include JavaScript tags and JavaScript. For a JSP file you can also include JSP tags.

But that answer seems too simplistic. So maybe I am not understanding the question. Are you asking whether there is a WYSIWYG editor for HTML? Or what is it that you are really asking.


JBoss In Action
nirjari patel
Ranch Hand

Joined: Apr 23, 2009
Posts: 374
If I am creating JSP page and want to include an expression in the code, I dont need to type tags for expression in editor, I can just click on expression in snippet and expression syntax will be included in editor.

Like this, if I want to include an image in HTML page, is there any view available where I can just click on the img in that view and syntax for that tag is included in editor ? If yes, in what view ?

Thanks
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5835
    
    7

You are asking for a WYSYWIG editor that includes a component palette. Eclipse does not have such a capability, but JBoss Tools provides such a capability.

From a text point of view, though, you should be able to type the first few letters of a tag (example: "<im") and then hit CTRL-SPACE and Eclipse should present several completion options. You can edit this list of completion items in Preferences under Web | HTML Files | Editor | Templates.

By the way, I assume that you downloaded and installed the Eclipse package identified by "Eclipse for Java EE Developers".>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Designing HTML pages in eclipse