I have recenlty installed IntelliJ on my computer and it seems to be really powerful IDE!
I create my XHTML file in this way :
New -->HTML file --> in dialog I fiil "Name" text field and "Kind" is selected to "XHTML file". As a result I get this but with icon of html file.:
<?xml version="1.0" encoding="UTF-8"?>
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
Main problem is that after creating xhtml file in this way I can't simply take new row pressing 'Enter' key. I can only change cdata in given elements but only in a single row because pressing 'Enter' doesn't work. Also code-completion doesn't work!!! I want to have on my page element like <h:inputText>, <h:outputFormat>, <f:facet>,<h:dataTable>
If I create file this way: New --->JavaEE Web Page -->Facelets page I have these libraries declared but I am unable to move to new row. 'Enter' still doesn't work as well as code-completion!!!
If I create xhtml in this way : New -->File -->'myname' -->next in dialog "Register New File Type Association" I select "XHTML files"
As a result I get completely empty file with no extension at all.