How to ignore tag (SSI)

I am coding HTML files containing a special preprocessing tag like so <a href="<#tagname>">link</a>. The <#tagname> will be replaced by the server.

How do i make phpStorms syntax checking et.al ignore this tag?

Thank you very much,

/Dany

P.S. I have looked into language injections. Does not seem to do what i need? D.S.

3 comments
Comment actions Permalink

Hi Dany,

PhpStorm currently does not recognise SSI tags (http://youtrack.jetbrains.com/issue/WI-875) and I very doubt that you define something like that using Language Injections (and what language will you be injecting there then?).

The thing you can do for sure is to disable "unknown resource/url" inspection for such cases (don't know if it is acceptable solution or not): Settings | Inspections | HTML | Unknown href target

0
Comment actions Permalink

Andiy!

Thanks a lot. I went into (Settings | Inspections | HTML | Unknown html tag), the href was just for example. I added # to the list and changed severity. I also found out that the server accept a closing / inside the tags so writing <#tagnamn/> now looks good.

Is there something similar for the JS parts in the HTML document?

TIA,

/Dany

0
Comment actions Permalink
Is there something similar for the JS parts in the HTML document?

Don't know, really -- all my JavaScript experience these days involves only very basic jQuery usage. If anything like that can be done, then you have look for it under "Settings | Inspections | JavaScript", but I doubt about it -- I think it requires proper SSI support from IDE side.

0

Please sign in to leave a comment.