[OS X TeX] TeXShop: a way to automate terminating each line in a block with a comment symbol
Murray Eisenberg
murrayeisenberg at gmail.com
Mon May 18 16:50:37 EDT 2020
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
More information about the MacOSX-TeX
mailing list