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


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

Submitter:  einpoklum
Submitted:  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
* Mandatory Fields

Add a New Comment Rich Markup

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:


and here:


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.



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

Attach Files:

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)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-ee12.
    Corresponding source code