On Wednesday, February 15, 2017 at 11:22:26 PM UTC-8, Roger Oberholtzer 
wrote:
>
> I see that the Lineno macro is part of Trac 1.2. I have it enabled as: 
>
> [components] 
> lineno.linenomacro.* = enabled 
>
> Nit I get his when trying to use it: 
>
> No macro or processor named 'Lineno' found 
>
> Did I miss something? 
>

You can remove that line from your components section, it's not necessary 
to enable a specific component in Trac 1.2 to get the feature.

The feature is not a specific WikiProcessor, rather it adds the lineno and 
marks arguments to codeblocks. Examples of highlighting linenos can be 
found here:
https://trac.edgewall.org/wiki/WikiProcessors#AvailableProcessors

{{{#!python lineno=3 marks=3,9-10,16
def expand_markup(stream, ctxt=None):
    """A Genshi stream filter for expanding `genshi.Markup` events.

    Note: Expansion may not be possible if the fragment is badly
    formed, or partial.
    """
    for event in stream:
        if isinstance(event[1], Markup):
            try:
                for subevent in HTML(event[1]):
                    yield subevent
            except ParseError:
                yield event
        else:
            yield event
}}}



- Ryan

-- 
You received this message because you are subscribed to the Google Groups "Trac 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/trac-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to