Discussion:
[Bug tui/23604] New: colorize source code
tromey at sourceware dot org
2018-09-03 17:56:58 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23604

Bug ID: 23604
Summary: colorize source code
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: tui
Assignee: unassigned at sourceware dot org
Reporter: tromey at sourceware dot org
Target Milestone: ---

The TUI could colorize source code.

A relatively simple way to do this would be to outsource the
colorizing to an existing package, like pygments.
http://pygments.org/

Pygments is written in Python so we'd need to expose
TUI windows to Python somehow (perhaps in an ad hoc way).

One possible difficulty is that maybe gdb would need a notion
of source file character set encoding.
--
You are receiving this mail because:
You are on the CC list for the bug.
tromey at sourceware dot org
2018-10-08 17:35:24 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=23604

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
There's also a GNU package for colorizing source:

https://www.gnu.org/software/src-highlite/

This one is in C++ so could be conditionally used directly
from the TUI code.
--
You are receiving this mail because:
You are on the CC list for the bug.
Loading...