From: SourceForge.net <no...@so...> - 2011-07-28 16:49:20
|
Feature Requests item #2557712, was opened at 2009-02-02 09:55 Message generated for change (Settings changed) made by ezust You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=350588&aid=2557712&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: Edit mode Group: None Status: Open >Resolution: Remind Priority: 5 Private: No Submitted By: Kevin Hunter (hunteke) >Assigned to: Nobody/Anonymous (nobody) Summary: syntax highlighting decision able to use entire path Initial Comment: Convention is starting to pull away from using just an extension or first line globs as indicators of what type of file it is. As an example, reference Debian's use of filesystem placement as a measure of what they should be: Anything in /etc/apache2/sites-available/ or /etc/apache2/sites-enabled/ should all be httpd conf files. However, jEdit currently only recognizes files that end with 'httpd.conf'. Reference email thread on lists: Date: Sun, 17 Aug 2008 01:53:35 -0400 Subject: syntax highlight: apache conf To: jEdit Dev List <jedit-devel@...> From: Kevin Hunter <hunteke@...> ---------------------------------------------------------------------- Comment By: Alan Ezust (ezust) Date: 2011-07-28 09:40 Message: it looks like my commit was bad. Changing what filename glob means is not an option. Dale and I will have to roll back our recent changes. Leshij, do you want to submit your patch? ---------------------------------------------------------------------- Comment By: Alan Ezust (ezust) Date: 2011-01-12 18:55 Message: Committed rev# 19190 to address this in jedit 4.5. Will also try to get it accepted in 4.4.x ---------------------------------------------------------------------- Comment By: Kevin Hunter (hunteke) Date: 2009-06-23 12:54 Message: Heh, you know I would like it. Mind filing that patch? ---------------------------------------------------------------------- Comment By: Denis Dzenskevich (leshij) Date: 2009-06-22 08:05 Message: Hello. I faced the same problem when tried to distinguish log files of various apps. I implemented this feature in jEdit (full pathname match in addition to filename). Does anyone need it? If so, I will file a patch. ---------------------------------------------------------------------- Comment By: Kevin Hunter (hunteke) Date: 2009-02-06 12:46 Message: Yes, I'm referring to the concept of deciding how to syntax highlight a file. I think jEdit does refer to it as edit mode. A quick gander at jedit/Mode.java suggests to me that the current method is mainly a regex on the basename of the file. Why not just do a regex on the entire filename, inclusive of the dirname and basename? Then, for user accessible configuration, it's a matter of making a dialog in Global Options, like "Mode Detection". It would basically be a thin veneer around ~/.jedit/modes/catalog : a 3 column dialog with the mode file, the glob, and the name. All fields editable, with a reset-to-default button. If a user changes a default, a new entry gets upserted into ~/.jedit/modes/catalog . If the user reverts to a default, the associated entry in ~/.jedit/modes/catalog gets removed. Finally, it's a matter of updating the master catalog file, perhaps by distribution, to "do the right thing." (Match by full pathname, by extension, whatevs.) ---------------------------------------------------------------------- Comment By: Shlomy Reinstein (shlomy) Date: 2009-02-06 07:54 Message: That's a very good point. Do you have a suggestion how to let users configure file types? (BTW, I suppose you're referring to edit modes, as I don't think there's any "file type" term in jEdit. Right?) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=350588&aid=2557712&group_id=588 |