-
Notifications
You must be signed in to change notification settings - Fork 814
Choose the syntax highlighting style
Andrea Cardaci edited this page Dec 12, 2019
·
1 revision
Syntax highlighting is provided by the Pygments library when available, just make sure to install it for the correct version of Python. To customize the syntax highlighting style change the dashboard -style syntax_highlighting attribute.
The list of all the available styles can be obtained with the following GDB commands:
python
from pygments.styles import *
for style in get_all_styles():
print(style)
endTo cycle through and try each available style use the following GDB commands:
python
from pygments.styles import *
for style in get_all_styles():
command = 'dashboard -style syntax_highlighting {!r}'.format(style)
gdb.execute(command)
print(command)
if input('Use this style? (y/N) ') == 'y':
break
endFinally to disable the syntax highlighting pass ''.