Built-in syntax highlighter in Lister: Difference between revisions

From TotalcmdWiki
Jump to navigation Jump to search
(Added a comment from c:Ghisler about this REQ & Link to: HglEditor)
(Additional backlink, categorization)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
Suggestion:
=== Suggestion ===
it would be great to have Lister feature like this:
It would be great to have syntax highlighting in Lister:


[[Image:fakesyntaxhlinlister.png|frame|center|Screenshot of Lister with '''built-in''' syntax highlighter]]
[[Image:fakesyntaxhlinlister.png|frame|center|Fake screenshot of Lister with '''built-in''' syntax highlighter]]
 
=== Ghisler's reply ===


[http://www.ghisler.ch/board/viewtopic.php?p=114241#114241 Feature: Syntax highlighting]
[http://www.ghisler.ch/board/viewtopic.php?p=114241#114241 Feature: Syntax highlighting]


Lister would have to read the entire file from the beginning for correct syntax highlighting. Why? Immagine the situation where the file starts with a "start comment" sign. Then the entire file up to the next "end comment" sign would be a comment! That's why reading only a small part of the file (as lister currently does) wouldn't be sufficient.
Lister would have to read the entire file from the beginning for correct syntax
 
highlighting. Why? Immagine the situation where the file starts with a
Author of Total Commander  
"start comment" sign. Then the entire file up to the next "end comment"
sign would be a comment! That's why reading only a small part of the file
(as lister currently does) wouldn't be sufficient.
Author of Total Commander  


Note:<br>
=== Lister plugins ===
There are several Lister plugins exist that can do the job with highlighting,
and do it perfectly, so this feature may be not so needed in built-in Lister. They are:<br><br>


<li> [http://www.totalcmd.net/plugring/synplus.html SynPlus]<br>
There are several Lister plugins that do the job with highlighting,
<li> [http://www.totalcmd.net/plugring/HglEditor.html SynPlus color scheme editor]<br>
and do it perfectly, so this feature is not so needed:
<li> [http://www.totalcmd.net/plugring/syn.html Syn] (good)<br>
<li> [http://www.totalcmd.net/plugring/synus.html SynUs] (outdated - use SynPlus instead)<br>
<li> [http://www.theess.com/highlight/ Highlight](Unofficial plugin)<br>
<li> [http://www.totalcmd.net/plugring/syntaxcolorizer.html SyntaxColorizer] (outdated)
<br><br>
All are Freeware.<br><br>


* [http://www.totalcmd.net/plugring/synplus.html SynPlus]<br>
* [http://www.totalcmd.net/plugring/HglEditor.html SynPlus color scheme editor]<br>
* [http://www.totalcmd.net/plugring/syn.html Syn] (good)<br>
* [http://www.totalcmd.net/plugring/synus.html SynUs] (outdated - use SynPlus instead)<br>
* [http://www.theess.com/highlight/ Highlight](Unofficial plugin)<br>
* [http://www.totalcmd.net/plugring/syntaxcolorizer.html SyntaxColorizer] (outdated)


{{backlink|Look and Feel Ideas and suggestions|Look and Feel}}
{{backlink|Look and Feel Ideas and suggestions|Look and Feel Ideas and suggestions}}
{{backlink|Ideas and suggestions|Ideas and suggestions}}
[[Category:Ideas and suggestions:Look and Feel]]

Latest revision as of 13:06, 22 March 2021

Suggestion

It would be great to have syntax highlighting in Lister:

Fake screenshot of Lister with built-in syntax highlighter

Ghisler's reply

Feature: Syntax highlighting

Lister would have to read the entire file from the beginning for correct syntax
highlighting. Why? Immagine the situation where the file starts with a
"start comment" sign. Then the entire file up to the next "end comment"
sign would be a comment! That's why reading only a small part of the file
(as lister currently does) wouldn't be sufficient.

Author of Total Commander 

Lister plugins

There are several Lister plugins that do the job with highlighting, and do it perfectly, so this feature is not so needed:


Back to Look and Feel Ideas and suggestions


Back to Ideas and suggestions