Slava Pestov | 4 Aug 2003 21:02

Re: Edit mode for ant build files

Hi,

The XML plugin includes a built-in completion info file for Ant build
files so a DTD is not necessary. This is also why you get completion
popups in build.xml without a DOCTYPE, etc.

On Mon, Aug 04, 2003 at 09:28:39AM -0700, Dale Anson wrote:
> Hi Slava,
> 
> Thanks for the tips.
> 
> About this question:
> 
> Would a feature in the XML plugin making it highlight known tags from
> the current file's DTD be better? It would work for HTML too.
> 
> I don't know. I like the edit mode, because it's easy to edit to add in 
> the names of some custom ant tasks that I use regularly. I tend to not 
> use dtd's with ant build files since there really isn't a solid dtd 
> available. The one you can generate with the "antstructure" task usually 
> needs a lot of editing to be decent. If this edit mode gets distributed 
> as part of the standard release, then the highlighting would be 
> available whether or not the xml plugin was installed. Or would the xml 
> plugin highlighting be in addition to the edit mode?
> 
> Dale
> 
> 
> 
> Slava Pestov wrote:
> 
> >On Fri, Aug 01, 2003 at 05:20:56PM -0700, Dale Anson wrote:
> >
> > 
> >
> >>This is nice! I do a lot of Ant files, don't know why I didn't think of 
> >>this. I put this line in my catalog file and it works fine:
> >>
> >><MODE NAME="Ant" FILE="ant.xml" FILE_NAME_GLOB="*.xml" 
> >>FIRST_LINE_GLOB="<project*>" />
> >>   
> >>
> >
> >Only &lt; and &gt; is valid XML but the com.microstar.xml parser accepts
> >both.
> >
> > 
> >
> >>Also, I changed the file name glob since many of my build files are not 
> >>named "build.xml", but the first line glob picks them up just fine, at 
> >>least so far.
> >>   
> >>
> >
> >A file is opened with a mode if it matches its file name glob _or_ first
> >line glob.
> >
> > 
> >
> >>I know I have a few that use an xml and dtd line at the 
> >>top, I'm guessing I'll need to pick the mode by hand for those.
> >>   
> >>
> >
> >Add <!-- :mode=ant: --> or whatever at the top of the file.
> >
> > 
> >
> >>Thanks a lot for providing this mode. I expect to use it regularly.
> >>   
> >>
> >
> >Would a feature in the XML plugin making it highlight known tags from
> >the current file's DTD be better? It would work for HTML too.
> > 
> >
> 

-- 
Slava Pestov

-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
--

-- 
-----------------------------------------------
jEdit Developers' List
jEdit-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jedit-devel


Gmane