Hi David,

Is there a specific reason why you don't want the syntax highlighting on the
template page?  If not, I would suggest leaving out the includeonly tags
entirely and just letting the source tag do its thing.

If there is, you might try putting <noinclude></noinclude> in the middle of
the source tag (to "break" it in the template), but I'm not entirely certain
that will work either.

Certainly the easiest, and most reliable, way is to just let the tags
resolve on the template page.

Regards,
Daniel

On 1 October 2010 16:58, David Doria <[email protected]> wrote:

> Thanks for the quick reply Daniel. Sorry, the nowiki tags were there as a
> result of my experimenting. I replaced them with includeonly tags but you
> can see the result is now different but still not correct.
> Any more ideas?
>
> David
>  On Fri, Oct 1, 2010 at 11:53 AM, Daniel Bishop <[email protected]>
> wrote:
>
> > Hi,
> >
> > Take the <nowiki></nowiki> tags out of your template. If you don't want
> it
> > highlighting on the template page itself, use <includeonly> tags around
> the
> > <source> tags instead.
> >
> > Regards,
> > Daniel
> >
> > On 1 October 2010 16:37, David Doria <[email protected]> wrote:
> >
> > > Hi all,
> > > I am trying to make a template which contains syntax highlighting.
> > >
> > > I made a template:
> > >
> > > http://www.vtk.org/Wiki/Template:VTKCMakeLists
> > >
> > > I then tried to use this template with:
> > > {{VTKCMakeLists|Thing1|Thing2}}
> > >
> > > But you can see here:
> > > http://www.vtk.org/Wiki/VTK/Sandbox/UseCMakeListsTemplate
> > >
> > > that it does not trigger the source code to be highlighted, but rather
> > > actually includes the source tag as part of the text on the page.
> > > Is there any way to do this?
> > >
> > > Thanks!
> > >
> > > David
> > > _______________________________________________
> > > MediaWiki-l mailing list
> > > [email protected]
> > > https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> > >
> > _______________________________________________
> > MediaWiki-l mailing list
> > [email protected]
> > https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
> >
> _______________________________________________
> MediaWiki-l mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>
_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to