I'm currently using the following YAML configuration for latexindent:
verbatimEnvironments:
verbatim: 1
lstlisting: 1
minted: 1
codebox: 1
modifyLineBreaks:
textWrapOptions:
columns: 80
However, I've encountered an issue where the formatter sometimes wraps text inside my custom command \codeinline{} in an undesirable way. An example of the problem is as follows:
\codeinline{Some really really long text that is going
to get wrapped}
This behavior is causing issues as it breaks the functionality of my custom command, and subsequently, the project fails to compile.
I'm seeking guidance on how to tweak the configuration to prevent text wrapping within \codeinline{} altogether. Ideally, I'd like to ensure that the text within \codeinline{} remains unaltered until the closing brace, or, if possible, have the entire \codeinline{} command placed on a separate line during formatting.
Any insights or suggestions on adjusting the YAML configuration to achieve this would be greatly appreciated. Thank you!
verbatimCommands: codeinline: 1should work I guess. – Marijn Feb 08 '24 at 19:16\codeinline– Oliver Hihn Feb 11 '24 at 14:45{at the end of the text inside my\codeinlineto "close" the verbatimCommand. However, I'm uncertain whether this behavior is intentional, as typically in LaTeX, commands use{}for their closure. – Oliver Hihn Feb 11 '24 at 15:19\codeinlinecommand to use a delimiter similar toverb. Any alternative suggestions? Changing this could affect its use throughout my document, so exploring ways to minimize adjustments. – Oliver Hihn Feb 11 '24 at 15:30