XHTML file type - script tag namespace

已回答

Hi,

 

i use one library - with name Joost for streaming xml transformations and it allows scripting.

The config for this library looks like XSLT, but has it's own name spaces.

And the scripting tag has usual name <script>, but the name space is joost:

<?xml version="1.0"?>
<!-- test for recursive stx:process-siblings -->
<stx:transform xmlns:stx="http://stx.sourceforge.net/2002/ns"
xmlns:joost="http://joost.sf.net/extension"
version="1.0" strip-space="yes">
<joost:script prefix="js" language="javascript" >
// some script
</joost:script>
</stx:transform>

And there is dilemma - i can remove the namespace - but specifying it like this:
xmlns="http://joost.sf.net/extension"

But this breaks output, however allowing me to use Javascript code completion.

Or i can use it as is is supposed to be - but Idea treats content as usual text - no JS completion.

 

Is there any way to specify idea that this is JS script - ignoring the namespace of the tag?

0

You can add this tag to language injection settings, just like the default one:

1

Thanks,

That's amazing!

0

请先登录再写评论。