|
From: SourceForge.net <no...@so...> - 2007-09-06 02:13:01
|
Patches item #1788847, was opened at 2007-09-05 22:50 Message generated for change (Settings changed) made by shlomy You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=300588&aid=1788847&group_id=588 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Shlomy Reinstein (shlomy) >Assigned to: Nobody/Anonymous (nobody) Summary: Syntax highlighting: Easy configuration of syntax styles Initial Comment: Currently, the syntax styles (token type settings used for syntax highlighting) in jEdit are configurable only using the Syntax Highlighting option pane of the Global Options dialog. This is not user friendly, since users do not normally know what each token type means for the specific mode(s) they're using. For example, if I want to configure the style of C++ variables, I need to match the style of a variable in some C++ buffer against the various token types in the option pane. If there are multiple token types with the same style, I need to try each one, click 'apply' and check how it affects the coloring in the buffer until I find which token type corresponds to C++ variables. I think the following would make it much easier for users to customize the styles: Provide an action that finds the token type under the caret, and opens the syntax style dialog for that token type. This way, the user doesn't even need to know the token types, he can simply put the caret on a variable, invoke the action and configure the style for variables. Later, this mechanism can be extended to provide mode-specific colors (i.e. override the global settings, like with the Editing option pane) - the style dialog can have a check-box to specify whether to set the global or mode-specific style for the token type, and jEdit can override the global settings with mode-specific ones whenever the mode is changed. But that's for another feature request, for now there's no need. ---------------------------------------------------------------------- Comment By: Shlomy Reinstein (shlomy) Date: 2007-09-05 23:46 Message: Logged In: YES user_id=1477607 Originator: YES Attaching a patch that implements this. The patch adds a sub-menu to "Utilities" named "Quick settings", that currently contains only the specified action for setting the syntax style of the token under the caret. I really hope this will be accepted because it makes it much easier to configure the syntax highlighting settings. If you have any comments, I'll be glad to hear. File Added: patch.1788847 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=300588&aid=1788847&group_id=588 |