Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have some own commands (as \note) that I usually define in the beginning of each document, which I would like TeXmaker to highlight in the same way as similar commands such as sections and math are given own and distinct colors in the the .tex document when viewed in TeXmaker (i.e. I would like to be able to give my own commands colors distinct from those of other commands). Is this possible?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted
  • user tags like \begin{customenvironment}.... \end{customenvironment} can be added using Texmaker menu --> User-->User tags-->Edit User tags
  • user latex commands like \note[]{} can be added using Texmaker menu-->Customize completion. In Customize completion dialog box type \note[@]{@} --> Press add-->Ok ( @ brings a vacant . to replace with command options)

Sometimes it may need a restart of Texmaker for user tags.

For more texmaker documentation go through this

http://www.xm1math.net/texmaker/doc.html#SECTION33

share|improve this answer
    
Yes, but how do I change the color of my own commands? –  malin Nov 29 '12 at 15:35
    
@malin personally i dont change color code, i like the defaults. try configure-->Editor-->colors –  texenthusiast Nov 29 '12 at 15:44
    
Its not possible to set the color of any specific commands there... :-( –  malin Nov 29 '12 at 16:19
1  
@malin you are right. only for user commands there is no option to change color –  texenthusiast Nov 29 '12 at 16:39
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.