<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Actually delving into the source a bit more, there is limited support for expl3 syntax already, with the hidden preference that came with v4.10.</div>
<div> </div>
<div>defaults write TeXShop expl3SyntaxColoring YES</div>
<div> </div>
<div>This at least formats code like \l_mymodule_foo:Nnn blue in the editor, which is an improvement over the default. But it would be nice to further distinguish functions from variables. I don't understand the code well enough to add that change, however.</div>
<div> </div>
<div>BTW, I've never quite understood the criteria for making something a hidden preference vs. a selectable preference in the preference panes.</div>
<div> </div>
<div>Alan</div>
<div> </div>
<div class="signature">--<br/>
Alan Munn<br/>
amunn@gmx.com</div>
<div>
<div>
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Sent:</b> Saturday, January 27, 2024 at 3:52 PM<br/>
<b>From:</b> "Richard Koch" <koch@uoregon.edu><br/>
<b>To:</b> "TeX on Mac OS X" <macosx-tex@email.esm.psu.edu><br/>
<b>Subject:</b> Re: [OS X TeX] TeXShop syntax highlighting for expl3</div>
<div name="quoted-content">
<div>Alan,
<div> </div>
<div>There is no "user-level" way to modify syntax coloring in TeXShop. By working with the code directly, syntax coloring can certainly be modified. When I added an html preview window, I modified syntax coloring to syntax color html code if the source file has extension .html rather than .tex.</div>
<div> </div>
<div>It would be an interesting project for someone to add to TeXShop the ability to design-your-own syntax coloring scheme. That might not be too difficult because the syntax coloring code is isolated to a small portion of the code base. I'm not a syntax coloring expert, and another advantage of such a project would be making syntax coloring more efficient at the same time that it is extended.</div>
<div> </div>
<div>I can imagine two forms of such a project. Both forms would introduce a pulldown menu allowing the user to select the syntax coloring scheme, with the current method being one of the choices. Perhaps this menu would associate new schemes with particular extensions, so the current extension could be used for .tex but a different one for .ltx or .html or whatever. One possible design would allow users to design a new scheme which would work without recompiling. Another might be a template to design a new scheme, but TeXShop would need to be recompiled to make it work.</div>
<div> </div>
<div>As TeXShop matures, I get suggestions for additional features that would affect fewer and fewer users. At the same time, I'm maturing and want to finish projects having nothing to do with TeXShop (!!). So it is useful to find features which can be broken off and done by an ambitious new contributor to the project.</div>
<div> </div>
<div>Dick</div>
<div>
<div>
<blockquote>
<div>On Jan 27, 2024, at 10:39 AM, Alan Munn via MacOSX-TeX <macosx-tex@email.esm.psu.edu> wrote:</div>
<div><span style="font-family: Helvetica;font-size: 12.0px;font-style: normal;font-weight: 400;letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;text-decoration: none;float: none;display: inline;">On 2024-01-27 at 12:37 PM, Herbert Schulz via MacOSX-TeX wrote:</span><br style="font-family: Helvetica;font-size: 12.0px;font-style: normal;font-weight: 400;letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;text-decoration: none;"/>
<blockquote style="font-family: Helvetica;font-size: 12.0px;font-style: normal;font-weight: 400;letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;text-decoration: none;">
<blockquote>On Jan 27, 2024, at 10:37 AM, Alan Munn via MacOSX-TeX <macosx-tex@email.esm.psu.edu> wrote:<br/>
<br/>
I suspect this has been asked before, but how extensible (if at all) is TeXShop's syntax highlighting code? As more of us who develop packages are using expl3 syntax, it would be really nice if TeXShop could highlight such code well.<br/>
Alan<br/>
<br/>
--<br/>
Alan Munn<br/>
amunn@gmx.com</blockquote>
<br/>
Howdy,<br/>
<br/>
I'm sure Dick Koch will enter the conversation but AFAIK the only control or changes you can make are to the colors of many items (which cannot be re-defined) on the Themes tab of TeXShop->Settings/Preferences.</blockquote>
<br style="font-family: Helvetica;font-size: 12.0px;font-style: normal;font-weight: 400;letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;text-decoration: none;"/>
<span style="font-family: Helvetica;font-size: 12.0px;font-style: normal;font-weight: 400;letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;text-decoration: none;float: none;display: inline;">Yes, I’m aware of the user level functionality within the editor. I was really asking about how easy it would be to add expl3 functionality to the code itself. It looks like there’s been some attempt to recognize _ as a relevant character, but at least in the current mode, expl3 macros don’t get coloured correctly. It would also be nice to be able to colour selectively on functions (which contain a colon) and variables, (which don’t), or even more control over different variable types, which in expl3 syntax are by convention explicitly marked, _clist, _bool, _int, etc.</span><br style="font-family: Helvetica;font-size: 12.0px;font-style: normal;font-weight: 400;letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;text-decoration: none;"/>
<br style="font-family: Helvetica;font-size: 12.0px;font-style: normal;font-weight: 400;letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;text-decoration: none;"/>
<span style="font-family: Helvetica;font-size: 12.0px;font-style: normal;font-weight: 400;letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;text-decoration: none;float: none;display: inline;">Alan</span><br style="font-family: Helvetica;font-size: 12.0px;font-style: normal;font-weight: 400;letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;text-decoration: none;"/>
<br style="font-family: Helvetica;font-size: 12.0px;font-style: normal;font-weight: 400;letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;text-decoration: none;"/>
<span style="font-family: Helvetica;font-size: 12.0px;font-style: normal;font-weight: 400;letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;text-decoration: none;float: none;display: inline;">Alan</span><br style="font-family: Helvetica;font-size: 12.0px;font-style: normal;font-weight: 400;letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;text-decoration: none;"/>
<blockquote style="font-family: Helvetica;font-size: 12.0px;font-style: normal;font-weight: 400;letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;text-decoration: none;"><br/>
Good Luck,<br/>
<br/>
Herb Schulz<br/>
herbs2@mac.com<br/>
<br/>
<br/>
----------- Please Consult the Following Before Posting -----------<br/>
TeX FAQ: https://www.tug.org/mactex/faq/index.html<br/>
List Reminders and Etiquette: https://sites.esm.psu.edu/~gray/TeX/<br/>
List Archives: http://dir.gmane.org/gmane.comp.tex.macosx<br/>
https://email.esm.psu.edu/pipermail/macosx-tex/<br/>
TeX on Mac OS X Website: https://www.tug.org/mactex/index.html<br/>
List Info: https://email.esm.psu.edu/mailman/listinfo/macosx-tex<br/>
</blockquote>
<br style="font-family: Helvetica;font-size: 12.0px;font-style: normal;font-weight: 400;letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;text-decoration: none;"/>
<span style="font-family: Helvetica;font-size: 12.0px;font-style: normal;font-weight: 400;letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;text-decoration: none;float: none;display: inline;">----------- Please Consult the Following Before Posting -----------</span><br style="font-family: Helvetica;font-size: 12.0px;font-style: normal;font-weight: 400;letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;text-decoration: none;"/>
<span style="font-family: Helvetica;font-size: 12.0px;font-style: normal;font-weight: 400;letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;text-decoration: none;float: none;display: inline;">TeX FAQ:<span class="Apple-converted-space"> </span></span><a href="https://www.tug.org/mactex/faq/index.html" style="font-family: Helvetica;font-size: 12.0px;font-style: normal;font-weight: 400;letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;" target="_blank">https://www.tug.org/mactex/faq/index.html</a><br style="font-family: Helvetica;font-size: 12.0px;font-style: normal;font-weight: 400;letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;text-decoration: none;"/>
<span style="font-family: Helvetica;font-size: 12.0px;font-style: normal;font-weight: 400;letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;text-decoration: none;float: none;display: inline;">List Reminders and Etiquette:<span class="Apple-converted-space"> </span></span><a href="https://sites.esm.psu.edu/~gray/TeX/" style="font-family: Helvetica;font-size: 12.0px;font-style: normal;font-weight: 400;letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;" target="_blank">https://sites.esm.psu.edu/~gray/TeX/</a><br style="font-family: Helvetica;font-size: 12.0px;font-style: normal;font-weight: 400;letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;text-decoration: none;"/>
<span style="font-family: Helvetica;font-size: 12.0px;font-style: normal;font-weight: 400;letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;text-decoration: none;float: none;display: inline;">List Archives:<span class="Apple-converted-space"> </span></span><a href="http://dir.gmane.org/gmane.comp.tex.macosx" style="font-family: Helvetica;font-size: 12.0px;font-style: normal;font-weight: 400;letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;" target="_blank">http://dir.gmane.org/gmane.comp.tex.macosx</a><br style="font-family: Helvetica;font-size: 12.0px;font-style: normal;font-weight: 400;letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;text-decoration: none;"/>
<span style="font-family: Helvetica;font-size: 12.0px;font-style: normal;font-weight: 400;letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;text-decoration: none;float: none;display: inline;"> </span><a href="https://email.esm.psu.edu/pipermail/macosx-tex/" style="font-family: Helvetica;font-size: 12.0px;font-style: normal;font-weight: 400;letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;" target="_blank">https://email.esm.psu.edu/pipermail/macosx-tex/</a><br style="font-family: Helvetica;font-size: 12.0px;font-style: normal;font-weight: 400;letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;text-decoration: none;"/>
<span style="font-family: Helvetica;font-size: 12.0px;font-style: normal;font-weight: 400;letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;text-decoration: none;float: none;display: inline;">TeX on Mac OS X Website:<span class="Apple-converted-space"> </span></span><a href="https://www.tug.org/mactex/index.html" style="font-family: Helvetica;font-size: 12.0px;font-style: normal;font-weight: 400;letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;" target="_blank">https://www.tug.org/mactex/index.html</a><br style="font-family: Helvetica;font-size: 12.0px;font-style: normal;font-weight: 400;letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;text-decoration: none;"/>
<span style="font-family: Helvetica;font-size: 12.0px;font-style: normal;font-weight: 400;letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;text-decoration: none;float: none;display: inline;">List Info:<span class="Apple-converted-space"> </span></span><a href="https://email.esm.psu.edu/mailman/listinfo/macosx-tex" style="font-family: Helvetica;font-size: 12.0px;font-style: normal;font-weight: 400;letter-spacing: normal;text-indent: 0.0px;text-transform: none;white-space: normal;word-spacing: 0.0px;" target="_blank">https://email.esm.psu.edu/mailman/listinfo/macosx-tex</a></div>
</blockquote>
</div>
</div>
----------- Please Consult the Following Before Posting ----------- TeX FAQ: <a href="https://www.tug.org/mactex/faq/index.html" target="_blank">https://www.tug.org/mactex/faq/index.html</a> List Reminders and Etiquette: <a href="https://sites.esm.psu.edu/~gray/TeX/" target="_blank">https://sites.esm.psu.edu/~gray/TeX/</a> List Archives: <a href="http://dir.gmane.org/gmane.comp.tex.macosx" target="_blank">http://dir.gmane.org/gmane.comp.tex.macosx</a> <a href="https://email.esm.psu.edu/pipermail/macosx-tex/" target="_blank">https://email.esm.psu.edu/pipermail/macosx-tex/</a> TeX on Mac OS X Website: <a href="https://www.tug.org/mactex/index.html" target="_blank">https://www.tug.org/mactex/index.html</a> List Info: <a href="https://email.esm.psu.edu/mailman/listinfo/macosx-tex" target="_blank">https://email.esm.psu.edu/mailman/listinfo/macosx-tex</a></div>
</div>
</div>
</div>
</div></div></body></html>