-
Notifications
You must be signed in to change notification settings - Fork 391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Syntax highlighting for fixme package #2494
Comments
maybe some configurations similar to |
I don't mind working on both the syntax and TOC features, but could we take one at a time? I don't have so much time, so doing it that way will be helpful for keeping focus for me. So, could I kindly ask we consider first the syntax highlighting part, then you could open a new issue for the TOC part?
Yes, sounds good. It would be helpful if you could provide a short
Yes, definitely. That's how I will address the syntax highlighting. |
Sure! 😄
I can definitely do that. Although the most common commands are already in the TOC parser test. The original issue for fixme support also summarizes them. Fixme has quite an interesting feature where users can define easily different commands for different authors (the call it the Edit: Regarding the signature feature, fixme uses a command to declare the new authors |
Fixme base commands
Fixme base environments
Multi-author scenario (icing on the cake)Note: This may call for a separate feature request as it should also impact the TOC parsing? In case of multiple authors, % \FXRegisterAuthor{<cmdPrefix>}{<envPrefix>}{<initials>}
\FXRegisterAuthor{jd}{ajd}{JD} % For John Doe This will then automatically create the commands |
I've pushed an initial version of this now. The multi-author is not included for now. Let me know what you think so far. |
In the related issue, you suggest to possibly use custom highlights for the various "severities". That's definitely a possibility. I'll look into that as well. |
AWESOME! Very nice decision to have the first argument highlighted as well, this really makes the annotation stand out in the text.
This could be left for a completely separate feature request, no real rush.
Indeed, however, I am not sure this is really something desirable for syntax highlighting. This may add some confusion with other elements that would share similar colors (headings, specific commands, etc.). Not sure. |
Great, I'm happy you like it!
Yes, let's do that. If you open a new feature request for this, it would be helpful with a sample LaTeX file (that is compileable) with a few examples of the specific feature. Then I could use that while developing it.
Ah, ok. I was thinking to reuse the highlight groups to avoid duplications. It feels more consistent to use the same concept within the TOC and inside the LaTeX file. So I would perhaps be inclined to think we should either use more colors both places, or just the TODO color in both places. In any case, if you think this is already sufficient for the syntax highlighting, then perhaps we should consider the current issue closed? |
Ok. I will open a new FR for that tomorrow and I will extend the test file already used to add the custom author stuff.
This makes sense as well. I am not really sure where I stand on that without actually seeing the stuff properly colored... But so far I am quite happy with the same color for all annotations.
Sure! |
Creat. I'll look into the TOC stuff when I get the time. I'll begin with single color version, then we can consider adding multiple colors later. |
Problem
When using the fixme package, the commands have no special highlights in the text. Besides that, when the related entry is shown in the TOC, it is in the same formatting as regular headings and hard to distinguish.
Solution
It would be nice to highlight the various
fixme
commands in the same way as the\todo
command is highlighted in the text. Indeed, they are usually not meant for final material and it would be much easier to spot them in the text.As for the TOC, it would be really nice to have the "fxnote:", "fxwarning:", "fxerror:" and "fxfatal:" highlighted properly so they can stand out better, as it is already the case with the "TODO" notes. A simple solution would be to apply the same highlight as for the TODO. A more elaborate one would be to use specific colors in the TOC based on the importance of the note (regular for note, yellow for warning, orange for error, red for fatal)
The text was updated successfully, but these errors were encountered: