[Pmwiki-users] Re: [[include: ... ]] part of a page

Patrick R. Michaud pmichaud
Tue May 4 23:31:48 CDT 2004


I'm open for discussion/reactions from the group on the suggestions given
by J. Meijer (below).  Many seem plausible to me.  If we followed it, 
the result might be something like:

   [[include:SomePage#soup]]       -- everything after #soup (cf. HTML)
   [[include:SomePage#soup#nuts]]  -- from #soup to #nuts
   [[include:SomePage#1#soup]]     -- everything before #soup
   [[include:SomePage#soup#]]      -- from #soup to the next anchor
   [[include:SomePage#1#]]         -- everything up to the first anchor
   [[include:SomePage#10]]         -- line 10 through end of SomePage
   [[include:SomePage#10#]]        -- line 10 through the next anchor

   [[include:SomePage#1#10]]       -- first ten lines 
   [[include:SomePage#5#10]]       -- lines 5 through 14
   [[include:SomePage#soup#1]]     -- one line starting with #soup
   [[include:SomePage#soup#5]]     -- five lines starting with #soup

We should try to solidify the interpretation of this syntax fairly quickly.

Pm

On Tue, May 04, 2004 at 11:11:37PM +0100, J. Meijer wrote:
> Glad to see the [[include:SomePage#from#to]] syntax emerging. I see it as an
> essential part of PmWiki.
> 
> The [[include:SomePage#from#]] syntax should include up to the next anchor.
> It is likely to be most frequently used. I just want to quote what that one
> author said on the subject.
> 
> When I want just the headline following the anchor I'd like to use
> [[include:SomePage#from#1]].
> 
> So when using numbers, I'd prefer this syntax: [[include:SomePage#10#5]]
> include 5 lines starting with line 10. Either number could be an anchor
> though [[include:SomePage#10#endanchor]]  doesn't look very intuitive.
> 
> -jm
> 
> 
> 
> -- 
> Pmwiki-users mailing list
> Pmwiki-users at pmichaud.com
> http://pmichaud.com/mailman/listinfo/pmwiki-users_pmichaud.com



More information about the pmwiki-users mailing list