[TxMt] Re: How to publish highlighted code with line numbers?
plastichairdoo
plastichairdoo at gmail.com
Fri Apr 15 16:40:29 UTC 2011
you're right about the lack of RTF export - forgot about that!
and you're correct about TM and scripting - but sometimes I just want to do some quick text manipulation and don't feel like brushing up on my Ruby!
I find I use TextWrangler about once every couple of months for a specific job...
anyway - what about using Markdown?
On Apr 15, 2011, at 9:36 AM, Thomas Krajacic wrote:
> AFAIK Textwrangler is just a text editor and hence can also not deal with RTF text. It would have to have an
> "export as RTF with line numbers" function to do what I want, which I highly doubt.
> And I don't think that any text editor tops Textmate in extensibility by means of scripting ;)
>
> On 15 Apr 2011, at 18:28, plastichairdoo wrote:
>
>> perhaps this is a bit uncool - but have you tried using TextWrangler to do this? it's free. I don't care for it as a IDE but there are some text manipulations that are far easier to do (as one off's) in TextWrangler...
>>
>>
>> On Apr 15, 2011, at 9:19 AM, Thomas Krajacic wrote:
>>
>>> I am sure it was asked before, but a search in the archives didn't turn up a solution.
>>> I am writing my master's thesis and I need to include C-code in my document.
>>> I would like it to be colored and have line numbers.
>>>
>>> There is a nice Copy as RTF command in Textmate that would do everything I need, except it doesn't
>>> work, if I add line numbers manually because this obviously breaks the code structure and highlighting
>>> breaks. So the line numbering will have to be done after the code is colorized.
>>>
>>> I would like to have RTF text since I want to paste it into Word later. (Maybe I shouldn't use Word O_o )
>>>
>>> I am sure some of you have had the same problem and maybe someone has a working solution.
>>> I also couldn't find any commandline tool that would read and write rtf line by line, which would
>>> be a simple post-processing step then to add the numbering.
>>> It might be possible to change the original Copy as RTF Bundle, but having a quick look inside it was
>>> a bit tricky to find where to add the necessary code.
>>>
>>> Help is greatly appreciated.
>>>
>>> Thomas
>>>
>>> _______________________________________________
>>> textmate mailing list
>>> textmate at lists.macromates.com
>>> http://lists.macromates.com/listinfo/textmate
>>
>>
>> _______________________________________________
>> textmate mailing list
>> textmate at lists.macromates.com
>> http://lists.macromates.com/listinfo/textmate
>
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
More information about the textmate
mailing list