Add macrocode as special case for syntax highlighting#3243
Add macrocode as special case for syntax highlighting#3243Skillmon wants to merge 1 commit intolervag:masterfrom
Conversation
|
Thanks! Can you give an example |
|
What do you exactly need the example |
|
Or rather: What do you need it for? Just as an example why the |
|
Ah, sorry, I need it for testing. I like to have a simple test file for more or less any feature. I can add the file myself, I just need to have some example of a relevant dtx file that uses the macrocode environment. |
|
In that case, doesn't get more authoritative than the LaTeX kernel (though their
As a simpler example, from one of my own smaller packages: |
|
Identfirst? 😜 (The joke on Tex.sx chat is that it's the smallest package possible...) https://mirrors.ctan.org/macros/latex/required/tools/indentfirst.dtx |
|
Thanks! I added test files myself and merged this. |
Inside a DTX file the
macrocodeenvironment has a very special meaning as it starts and ends the portions of the file which will be added to the exported file.For that reason this PR adds a highlighting group for
% \begin{macrocode}(and\end) and links it toSpecial.