On Saturday, February 7, 2015 at 10:45:10 AM UTC-2, Lex Trotman wrote:
>
> On 7 February 2015 at 23:20, Fernando Basso <[email protected] 
> <javascript:>> wrote: 
> > 
> > 
> > On Thursday, February 5, 2015 at 10:33:18 PM UTC-2, Lex Trotman wrote: 
> >> 
> >> On 6 February 2015 at 10:26, Fernando Basso <[email protected]> 
> wrote: 
> >> > Yes, that is indeed close enough (although I don't like that 
> unnecessary 
> >> > span tag). 
> >> 
> >> Yes, but its unmodified asciidoc :) 
> > 
> > 
> > And how would I go about modifying the output? 
>
> Make an asciidoc.conf with 
>
> [tags] 
> monospaced=whatever, see your backend.conf file for the current value 
>  


This worked:

[tags]
monospaced=<code>{1?<code class="{1}">}|{1?</code>}</code>

Thanks a lot for your guidance.

 

> Cheers 
> Lex 
>
> > 
> >> 
> >> 
> >> > 
> >> > What I could do some minutes ago was to define :spc: &#160; and 
> >> > 
> >> >     [regex-inlinemacro] 
> >> >     <code class='regex'>{passtext}</code> 
> >> 
> >> What does your macro definition look like? 
> >> 
> >> > 
> >> > Then, in the asciidoc file I write 
> >> > 
> >> >     some text [.regex]`{spc}{spc}this ` more text 
> >> 
> >> This is not legal syntax, having the dot, so its undefined what it 
> >> does, it may change at any time a change is made to Asciidoc.  Don't 
> >> rely on it. 
> >> 
> >> > 
> >> > and it translates to 
> >> > 
> >> >     <code class='regex'>  this </code> more text 
> >> > 
> >> > Note that I have to use [.regex]. Simply [regex] does not work. Also, 
> >> > simply 
> >> > using &#160; instead 
> >> > of {spc} works, but using the {nbsp} doesn't work (no spaces are 
> kept). 
> >> 
> >> The ` is a constrained quote, that is the text inside it cannot begin 
> >> and end with spaces, thats the definition of constrained quotes.  You 
> >> are basically fighting the asciidoc processor here. 
> >> 
> >> 
> >> Cheers 
> >> Lex 
> >> 
> >> > 
> >> > 
> >> > On Thursday, February 5, 2015 at 9:13:54 PM UTC-2, Lex Trotman wrote: 
> >> >> 
> >> >> On 6 February 2015 at 09:20, Fernando Basso <[email protected]> 
> >> >> wrote: 
> >> >> > I swear to god I'm reading the user guide a lot. Still, I cannot 
> >> >> > figure 
> >> >> > out 
> >> >> > how to write a macro or create customize asciidoc for my need. 
> >> >> > 
> >> >> > I also found this example: 
> >> >> > 
> >> >> > http://mojavelinux.github.io/decks/asciidoc-with-pleasure/#42.0 
> >> >> > 
> >> >> > In that example, are the two pieces of code? 
> >> >> > 
> >> >> > What if I want to write something that allows me to write this in 
> an 
> >> >> > asciidoc file: 
> >> >> > 
> >> >> >     some text [.regex]` foo bar   ` more text... 
> >> >> 
> >> >> Well 
> >> >> 
> >> >> some text [regex]++ foo bar  ++ more text 
> >> >> 
> >> >> produces 
> >> >> 
> >> >> some text <code><span class="regex"> foo bar  </span></code> more 
> text 
> >> >> 
> >> >> Is that close enough? 
> >> >> 
> >> >> Cheers 
> >> >> Lex 
> >> >> 
> >> >> 
> >> >> > 
> >> >> > And make it translate to 
> >> >> > 
> >> >> >     <code class='regex'>[space]foo bar[space][space]</code> 
> >> >> > 
> >> >> > 
> >> >> > I don't know. The docs seem to lack examples. But I feel it is my 
> >> >> > fault 
> >> >> > nonetheless because other 
> >> >> > people have learned to do wonderful things with it anyway. 
> >> >> > 
> >> >> > Thanks in advance for any help or insights. 
> >> >> > 
> >> >> > -- 
> >> >> > You received this message because you are subscribed to the Google 
> >> >> > Groups 
> >> >> > "asciidoc" 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 http://groups.google.com/group/asciidoc. 
> >> >> > For more options, visit https://groups.google.com/d/optout. 
> >> > 
> >> > -- 
> >> > You received this message because you are subscribed to the Google 
> >> > Groups 
> >> > "asciidoc" 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 http://groups.google.com/group/asciidoc. 
> >> > For more options, visit https://groups.google.com/d/optout. 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "asciidoc" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to [email protected] <javascript:>. 
> > To post to this group, send email to [email protected] 
> <javascript:>. 
> > Visit this group at http://groups.google.com/group/asciidoc. 
> > For more options, visit https://groups.google.com/d/optout. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"asciidoc" 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 http://groups.google.com/group/asciidoc.
For more options, visit https://groups.google.com/d/optout.

Reply via email to