javascript autocompletion in html files and in xml files

hello,

I wonder if it is possible in intelliJ to have javascript completion in an HTML file, and in an XML file.

olivier.

5 comments

It is possible in IntelliJ IDEA Ultimate edition

On 24.02.2010 15:53, olivier SAINT-EVE wrote:

hello,

>

I wonder if it is possible in intelliJ to have javascript completion in an HTML file, and in an XML file.

>

olivier.

>

---
Original message URL: http://www.jetbrains.net/devnet/message/5257259#5257259



--
Best regards,
   Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

yes, I saw it on the trial.
but I want to have something more : inside a XML document, is it possible to have a tag <script type="text/javascript"> </script> and the javascript autocompletion ?
I tried but didn't manage.

can you confirm me it isn't possible?

regards,

olivier.

0

It is possible via custom configurations in Settings|Language Injections

On 24.02.2010 17:18, olivier SAINT-EVE wrote:

yes, I saw it on the trial.
but I want to have something more : inside a XML document, is it possible to have a tag<script type="text/javascript">  </script>  and the javascript autocompletion ?
I tried but didn't manage.

>

can you confirm me it isn't possible?

>

regards,

>

olivier.

>

---
Original message URL: http://www.jetbrains.net/devnet/message/5257284#5257284



--
Best regards,
   Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0

hi,

I think seriously to buy intelliJ.
but I would like that you help me to configure it, in order to have javascript support in my XML files.

here is the stuff:
I want to use openLaszlo, an open-source framework using LZX files which are XML files.

here is an example of such a file:

**********************************************************
<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE canvas SYSTEM "lzx.dtd">

<canvas>
    <script type="text/javascript">
            
    </script>
</canvas>
**********************************************************

presently, I does not have any completion in the "script" tag (although with the tag "xml:javascript" I have it, but I fear the openLaszlo does not recognize the file in that case), could you tell me how to configure the item "language injection / edit (of the "xml:script" tag)?

regards,

olivier SAINT-EVE.

0

ok, it works (openLaszlo) with the "xml:javascript" tag.

thanks!

0

Please sign in to leave a comment.