![]() If you open the plist file in an appropriate editor (you can even open it in TextWrangler itself if there are no better editors installed), you can find the list of recognized keywords and add whatever you want. There's only a limited amount of customizability in the basic highlighter, so I believe that was the best I could manage.Īdding additional tags to the recognized list is easy, though. The thing is, this is just a set of configuration parameters for TextWrangler's basic syntax highlighter, and I set it up to count macros as comments. Unless TextWrangler allows you to colour "line comments" and "block comments" in different colours, I don't think you can change the macro colour. I'd also like to add to the recognized list of tags. Side note: Is there a way for me to make macros appear green (or some other color) in the syntax highlighter you made? I have no idea where to start. Helmet wrote: ↑ November 15th, 2020, 1:34 pm ![]() If I had the time (and motivation) I would do it properly and write a C++ module to interface with TextWrangler for the syntax hiliting there's an API provided for that, and it would make a lot of things nicer (eg, ability to hilite inline Lua). I didn't include a license file in the download, but it can be considered to be available under a Simplified BSD license. Preprocessor commands are also considered identifiers and hilited as such, while still supporting comment hiliting. It's probable that I've missed a tag or two, and there may be one or two tags in the list that don't exist. The plist file in the download is generated by a simple Python script so that it hilites full tags rather than just the tag-name (thus preventing tag-names from being hilited in other contexts) the source for that script is also available, which could be useful if someone else wanted to update it for newer tags. ![]() For Mac users, I made a TextWrangler/BBEdit syntax highlighter (with limited support for the function menu as well). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |