In my case, I have not directory '~/.asciidoc'

(a) I'm using "[source,python]" to include a file being highlighted. But 
(b) I also want to include a text file wich is not necessary be highlighted.

El miércoles, 13 de marzo de 2013 17:28:50 UTC, Dan Allen escribió:
>
> I found that I had to delete my ~/.asciidoc/filters/source directory, 
> which is actually no longer needed anyway now the filter is in AsciiDoc.
>
> If you want to include a source file and get syntax highlighting for it, 
> there are two recommended ways of doing it (by order of recommendation):
>
> [source,ruby]
> ----
> include::module.rb[depth=1]
> ----
>
> or
>
> [source,ruby,subs="attributes"]
> ----
> include1::module.rb[]
> ----
>
> Am I understanding correctly that you want the source code highlighted?
>
> -Dan
>
> On Wed, Mar 13, 2013 at 11:16 AM, Charles Beck <[email protected]<javascript:>
> > wrote:
>
>> So, the right thing is to use "[source,txt]" but it's giving problems 
>> now, at least it is not working in Ubuntu
>>
>> El miércoles, 13 de marzo de 2013 17:05:57 UTC, Dan Allen escribió:
>>>
>>> Actually, I misunderstood the question. include::file.rb[] is the 
>>> correct way to include.
>>>
>>> ...however, I'm getting the same thing on my system all of a sudden 
>>> too...the source highlighter filter isn't working properly. Perhaps an 
>>> update in Linux / Python somehow killed it? Something strange is going on.
>>>
>>> -Dan
>>>
>>>
>>> On Wed, Mar 13, 2013 at 10:45 AM, Charles Beck <[email protected]> wrote:
>>>
>>>> 'include1' is not working, at least in my system, Ubuntu 12.10
>>>>
>>>> $ a2x --version
>>>> a2x 8.6.7
>>>>
>>>> El miércoles, 13 de marzo de 2013 15:20:31 UTC, Dan Allen escribió:
>>>>>
>>>>> You can use include1, which just pulls in the content w/o treating it 
>>>>> as AsciiDoc.
>>>>>
>>>>> -Dan
>>>>>
>>>>> On Wed, Mar 13, 2013 at 5:23 AM, Charles Beck <[email protected]>wrote:
>>>>>
>>>>>> When you are going to include an external file in plain text format, 
>>>>>> is necessary to use a tag (i.e. "[source,txt]") like it's used at 
>>>>>> inserting 
>>>>>> a code source file as:
>>>>>>
>>>>>> [source,ruby]
>>>>>> ----
>>>>>> include::../code/file-1.rb[]
>>>>>> ----
>>>>>>
>>>>>>
>>>>>>  -- 
>>>>>> 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 asciidoc+u...@**googlegroups.com**.
>>>>>> To post to this group, send email to [email protected].
>>>>>>
>>>>>> Visit this group at 
>>>>>> http://groups.google.com/**group**/asciidoc?hl=en<http://groups.google.com/group/asciidoc?hl=en>
>>>>>> .
>>>>>> For more options, visit 
>>>>>> https://groups.google.com/**grou**ps/opt_out<https://groups.google.com/groups/opt_out>
>>>>>> .
>>>>>>  
>>>>>>  
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> -- 
>>>>> Dan Allen
>>>>> Principal Software Engineer, Red Hat | Author of Seam in Action
>>>>> Registered Linux User #231597
>>>>>
>>>>> http://google.com/profiles/**dan**.j.allen<http://google.com/profiles/dan.j.allen>
>>>>> http://mojavelinux.com
>>>>> http://mojavelinux.com/**seamina**ction<http://mojavelinux.com/seaminaction>
>>>>>  
>>>>  -- 
>>>> 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 asciidoc+u...@**googlegroups.com.
>>>> To post to this group, send email to [email protected].
>>>> Visit this group at 
>>>> http://groups.google.com/**group/asciidoc?hl=en<http://groups.google.com/group/asciidoc?hl=en>
>>>> .
>>>> For more options, visit 
>>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>>> .
>>>>  
>>>>  
>>>>
>>>
>>>
>>>
>>> -- 
>>> Dan Allen
>>> Principal Software Engineer, Red Hat | Author of Seam in Action
>>> Registered Linux User #231597
>>>
>>> http://google.com/profiles/**dan.j.allen<http://google.com/profiles/dan.j.allen>
>>> http://mojavelinux.com
>>> http://mojavelinux.com/**seaminaction<http://mojavelinux.com/seaminaction>
>>>  
>>  -- 
>> 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?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>
>
> -- 
> Dan Allen
> Principal Software Engineer, Red Hat | Author of Seam in Action
> Registered Linux User #231597
>
> http://google.com/profiles/dan.j.allen
> http://mojavelinux.com
> http://mojavelinux.com/seaminaction
>  

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to