bugGNU source-highlight - Bugs: bug #57824, Documentation & repo files...

 
 

bug #57824: Documentation & repo files don't say how to set colors

Submitted by:  einpoklum
Submitted on:  Sat 15 Feb 2020 06:26:08 PM UTC  
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sat 15 Feb 2020 06:26:08 PM UTC, original submission:  

I am an end-user of libsource-highlight: My Linux distribution has a less package; the less package uses lesspipe as its LESSOPEN variable; and lesspipe relies on libsource-highlight to do syntax highlighting, apparently.

Now, suppose that I want to change the highlight colors for some type of source file, or globally, for some reason. Since the two packages I mentioned earlier just relegate this task to libsource-highlight - I look to its documentation and its installed files to understand how to do so. And - I'm failing...

The documentation does mention colors, here:

https://www.gnu.org/software/src-highlite/source-highlight.html#Using-source_002dhighlight-with-less

and here:

https://www.gnu.org/software/src-highlite/source-highlight.html#ANSI-color-escape-sequences

I can even locate the esc.style and esc256.style files in /usr/share/source-highlight. But - nothing tells me how I can actually apply one or the other; nor how to override them partially or wholly as a non-root user.

The documentation mentions the switch `--style-file`; but - a switch to what? Neither less nor lesspipe seem to accept that as a command-line argument. And nothing in the documentation distinguishes system-general and user-specific file locations.

The INSTALL and README files are no help either.

einpoklum

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by einpoklum (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    No changes have been made to this item

    Back to the top


    Powered by Savane 3.7