A-ha!  A bug!  Here's the story...

I first created the file as test.xml, and auto-completion worked fine.
Then, curious if build 609 included auto-completion support for HTML, I
closed the file, renamed it to test.html, opened it back up and tried
auto-completion again...and it *worked*.  So I simply figured that the
IntelliJ folks had added doctype support for HTML files in build 609, and
attached the HTML file (my original email had a warning that your XHTML
files would have to have a .xml extension, but, thinking it was fixed, i
took it out).

But!  After i got your message about it not working, I tried autocompletion
on the file (test.html) again and, like you said, it didn't work.

So the problem appears to be that IDEA still considers the file to be an XML
file, even though it has been renamed to have a .html extension.  IDEA don't
seem to realize that it's actually an HTML file until you close and reopen
the project.

I'm using Win2k sp1, jdk 1.3.1_02, build 609.

chris

> -----Original Message-----
> From: Rodrigo Gevaerd [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 08, 2002 6:51 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: [Eap-list] HTML dtd definition for autocomplete
> 
> 
>    It only worked with me after I renamed your Test.htm to Test.xml. 
>    For IDEA developers(if this would solve the problem): It 
> would be nice if
> we could associate a DTD for all HTML files, so we would also 
> not need to
> enter the <!DOCTYPE tag inside the HTML.
> 
>    []'s,
> 
>    Rodrigo.
> 
> 
> > -----Original Message-----
> > From: Bartley, Chris [mailto:[EMAIL PROTECTED]]
> > Sent: quinta-feira, 7 de mar�o de 2002 13:05
> > To: '[EMAIL PROTECTED]'
> > Subject: RE: [Eap-list] HTML dtd definition for autocomplete
> > 
> > 
> > The XHTML DTD works great for me for autocompletion.  Just 
> > make sure you're
> > using at least build 609, and don't try to run Validate on 
> it yet (see
> > 
> http://www.intellij.com/pipermail/eap-list/2002-February/012824.html).
> > 
> > I've attached the XHTML transitional DTD and a simple XHTML 
> > file for you to
> > test with.  Note that you'll first need to register the DTD 
> in IDEA's
> > External Resources, like this:
> > 
> >    URI:
> >    
> > http://www.w3.org/TR/2000/REC-xhtml1-20000126/DTD/xhtml1-trans
> itional.dtd
> 
>    Path:
>    C:\Data_Bartley\DTDs\xhtml1-transitional.dtd
> 
> (your local path to the DTD will vary, of course)
> 
> Hope that helps.
> 
> chris
> 
> -----Original Message-----
> From: Patrik Andersson [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, March 07, 2002 8:45 AM
> To: '[EMAIL PROTECTED]'
> Subject: SV: [Eap-list] HTML dtd definition for autocomplete
> 
> 
> I tried getting the XHTML DOCTYPE working, but to no avail. 
> IDEA puked all
> over the place when I copied the DOCTYPE declaration from 
www.w3c.org. 


-----Ursprungligt meddelande----- 
Fr�n: Rodrigo Gevaerd [mailto:[EMAIL PROTECTED]] 
Skickat: den 7 mars 2002 14:20 
Till: '[EMAIL PROTECTED]' 
�mne: [Eap-list] HTML dtd definition for autocomplete 


  Have anyone thought about using a dtd for autocompletion when editing html

files or html in jsp files? Although this may force you to do things like 
<br/> instead of <br>, this may be worth. 
  []'s, 
  Rodrigo. 
_______________________________________________ 
Eap-list mailing list 
[EMAIL PROTECTED] 
http://www.intellij.com/mailman/listinfo/eap-list 


_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

_______________________________________________
Eap-list mailing list
[EMAIL PROTECTED]
http://www.intellij.com/mailman/listinfo/eap-list

Reply via email to