Menu

#1937 highlighting \todo[...]{...}

None
fixed
nobody
None
1
2016-10-31
2016-10-17
Anonymous
No

Hello!

A strange behaviour occurs in my 2.11.2 installations (both: Win7 and Linux):
There is no syntax highlighting using the construction "\todo[...]{...}". Using "\todo{}" the highlighting is there as usual.

I have reinstalled 2.11.0 on Win7, and there were no problems with the highlighting, all was highlightend as defined.

This problems was also mentioned here: http://golatex.de/viewtopic,p,87566.html#87566

Thanks!

Damian

Related

Feature Requests: #339

Discussion

  • Tim Hoffmann

    Tim Hoffmann - 2016-10-17

    This is a regression of [bugs:#1789].

    \todo highlighting is currently implemented as an extension of the language definition. This is reg-ex based and this does not match well to the pattern of LaTeX commands. Maybe one should remove it from the language definition and highlight it dynamically instead when parsing the document.

     

    Related

    Bugs: #1789

  • Johannes Twittmann

    When fixing this I'd love to see support to be able to assign different colors for \missingfigure and \todo.

    And if possible I'd also love to see support for couloring the todo items according to its options. Meaning: \todo[color=red]{...} should be red, \todo[color=yellow]{...} should be yellow and so on... But this is only the icing on the cake ;)

     
    • Tim Hoffmann

      Tim Hoffmann - 2016-10-31

      Please do not post feature requests into bug reports. They'll get lost since noone will look in here after the bug is fixed. Instead, open a separate feature request.

       
  • Tim Hoffmann

    Tim Hoffmann - 2016-10-31

    fixed: hg 6261 (b7ff4d056e3e)

    todo highlighting is now based on cwl information (not on reg-exp-based language definition)

     
  • Tim Hoffmann

    Tim Hoffmann - 2016-10-31
    • status: open --> fixed
    • Group: -->
     

Log in to post a comment.