[OS X TeX] TeXShop: a way to automate terminating each line in a block with a comment symbol
Nicolas Martignoni
nicolas at martignoni.net
Tue May 19 02:32:47 EDT 2020
No, this will find any number of white spaces (including tabs) at end of line.
--
Nicolas Martignoni
nicolas at martignoni.net
> Le 18 mai 2020 à 22:50, Murray Eisenberg <murrayeisenberg at gmail.com> a écrit :
>
> Is the regex search for "\b*$” equivalent to what Martin Costabel suggested, to use " *$” ??
>
>> On 18 May2020, at 4:38 PM, Luis Sequeira <lfsequeira at gmail.com> wrote:
>>
>> Murray, a few comments on your comments:
>>
>> (a) This method is possible only when using the OgreKit Find Panel.
>>
>> True. I have always used OgreKit. I do remember there were other options, but OgreKit is so much more flexible.
>>
>>
>> (b) It does not work as I?d expect if there are trailing blanks in one of the block?s lines, as it leaves those unwanted blanks there.
>>
>> This one is very easy.
>> Just replace the find regular expression to include any number of blanks before the end of the line.
>>
>> Instead of "$", search for "\b*$"
>>
>> Incidentally, regular expressions are not that hard to figure out.
>> I use them a lot, both in TeXShop and BBEdit (and good'ole vi...)
>>
>> (c) [of course] one also has to check the ?Selection? option of the Scope section in the OgreKit Find Panel.
>>
>> I did write that!
>>
>>
>>
>> Also: yes, it would be nice to have a macro for it, and I have no doubt one can be created, but I have not looked much into it.
>>
>> Regards
>>
>> LS
>> ----------- Please Consult the Following Before Posting -----------
>> TeX FAQ: http://www.tex.ac.uk/faq
>> List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
>> List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
>> https://email.esm.psu.edu/pipermail/macosx-tex/
>> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
>> List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex
>
> ---
> Murray Eisenberg murrayeisenberg at gmail.com
> 503 King Farm Blvd #101 Home (240)-246-7240
> Rockville, MD 20850-6667 Mobile (413)-427-5334
>
>
> ----------- Please Consult the Following Before Posting -----------
> TeX FAQ: http://www.tex.ac.uk/faq
> List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/tex/
> List Archives: http://dir.gmane.org/gmane.comp.tex.macosx
> https://email.esm.psu.edu/pipermail/macosx-tex/
> TeX on Mac OS X Website: http://mactex-wiki.tug.org/
> List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex
More information about the MacOSX-TeX
mailing list