Adding a Custom HTML Wrapper to IntelliJ IDEA 9
Written by Simon Bailey
I have found a neat little workflow in IntelliJ IDEA 9 to use a custom html wrapper. I found Flex Builder to be quite limiting in handling this aspect, I tend to have a very simple swfobject template which I like to use and involves me copying and pasting this into each and every project I build in Eclipse!
A HTML wrapper in Flex Builder can be modified but its restricted to a set series of options in the Flex Compiler panel which simply alters which Adobe defined template in the SDK directory is used. You could go and change the actual templates in those folders but that just doesn’t feel right. The other issue is that if you remove/add the wrapper option then your custom index.template.html gets overwritten. This is all handled much more efficiently in IntelliJ IDEA due to the ability to actually select a template from the SDK directory, it’s here that I added my own custom template (included below). Here is the process in 4 easy steps:
Step 1:
Step 2:
Step 3:
Step 4: