You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With sight, I can see that code has syntax highlighting, like different colors/fonts for keywords, comments, docstrings, arguments, etc.
But using a screenreader (e.g. NVDA), the text is just all one global font style (basically white text on black background), as reported by the "report text formatting info" NVDA command, which has hotkey NVDA+f.
I'd like my screen reader to see the syntax highlighting so I can customize audio cues / audio highlighting for different types of text,
Like audio highlighting docstrings and comments to speak in higher-pitch from the speech synthesizer, etc.
How to replicate issue
Create a python file. Add example code, with import statements, function definition, docstring, and single-line comment with hash symbol (#).
Start NVDA and go to any of those lines, such as docstring vs one-line comment. Press NVDA+f hotkey
Expected syntax highlighting, like different font color or anything else, but got same text formatting info for all lines:
4 space
Consolas
10.5 pt
very light grey on very dark grey
align left
What I've tried / workarounds
tried on both VS Code and VS Code Insiders, all were latest versions
tried disabling extensions
I even built clunky NVDA modifications to do audio highlighting based on parsing the text myself looking for "#" and triple quotes for docstrings/comments, but as expected it's pretty bad in practical use.
VS Code version: Code - Insiders 1.97.0-insider (0979fcb, 2025-01-24T16:41:13.583Z)
OS version: Windows_NT x64 10.0.26100
Modes:
Type: Bug
Issue
With sight, I can see that code has syntax highlighting, like different colors/fonts for keywords, comments, docstrings, arguments, etc.
But using a screenreader (e.g. NVDA), the text is just all one global font style (basically white text on black background), as reported by the "report text formatting info" NVDA command, which has hotkey NVDA+f.
I'd like my screen reader to see the syntax highlighting so I can customize audio cues / audio highlighting for different types of text,
Like audio highlighting docstrings and comments to speak in higher-pitch from the speech synthesizer, etc.
How to replicate issue
What I've tried / workarounds
VS Code version: Code - Insiders 1.97.0-insider (0979fcb, 2025-01-24T16:41:13.583Z)
OS version: Windows_NT x64 10.0.26100
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
A/B Experiments
Keywords: font color, font style, accessibility, font formatting, text formatting
The text was updated successfully, but these errors were encountered: