facebook

Freemarker template using html editor

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #222682 Reply

    Hi, i am using freemarker extensivly and i am wondering how i can tell eclipse to use the myeclipse html editor to open .ftl file ?

    Moreover, would it be possible to extend the myeclipse html editor to offer tag completion for freemarker ?

    Thanks in advance.
    Chris

    #222700 Reply

    Riyad Kalla
    Member

    Chris,
    Window > Prefs > Workbench > File Associations, associate *.flt with the “MyEclipse HTML Editor”.

    As far as extension goes, I’m sure it can be done via a plugin.

    #222782 Reply

    Thanks, as far as a plugin, freemarker provides one as an editor but if i use it i loose all features provided by the myeclipse html editor 🙁

    #227340 Reply

    Riyad, sorry to bump this issue again but it looks like something does not work, i am using 3.1M4 with latest myeclipse, i followed your advice and associated *.ftl with myeclipse html editor. WHen i open a ftl file, myeclipse html editor is used however it does not work properly(No content assit, many errors on the page etc….), if i copy/paste the content in an .html file, no error at all and the content assist works…

    Step to reproduce this “bug”:

    1)Associate *.ftl with myeclipse html editor
    2) Using the html wizard, create a dumb html file -> test.html, content assist works and no error on meta tags
    3) Create a new file called test.ftl, copy the content of test.html into it and check the editor.

    #227345 Reply

    Riyad Kalla
    Member

    tlvenn can you post the exact contents of the HTML page so I can demo it here locally as close as possible to what you were doing?

    #227349 Reply

    here oyu go, really only the default template:

    <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN”>
    <html>
    <head>
    <title>MyHtml.html</title>

    <meta http-equiv=”keywords” content=”keyword1,keyword2,keyword3″>
    <meta http-equiv=”description” content=”this is my page”>

    <!–<link rel=”stylesheet” type=”text/css” href=”./styles.css”>–>

    </head>

    <body >
    This is my HTML page. <br>
    </body>
    </html>

    #227428 Reply

    Riyad Kalla
    Member

    I have filed this bug for us to investigate before 4.0 ships.

    #239939 Reply

    Any news on this subject please ?

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: Freemarker template using html editor

You must be logged in to post in the forum log in