Introduction¶
The Web UI of DeepSeek Harness (DSH) displays shell dotfiles (such as .bashrc, .zshrc, .gitconfig) as plain text by default, without line numbers or syntax highlighting. This presentation is not intuitive enough for scenarios that require reading, debugging configurations, or instructional demonstrations. The dsh-highlight plugin provides code previews with line numbers and syntax coloring for these files.
What Is This¶
dsh-highlight is a client-side plugin developed by the maintainer jianghuifr to enhance dotfile display in the DSH Web UI. It provides previews for files with 47 common extensions, applying syntax coloring to recognized formats (shell, ini, yaml, json, python, perl, ruby, javascript), while retaining line numbers and copy functionality for the rest.
Core Features¶
- Supported file types: 47 common extensions (including
.bashrc,.zshrc,.gitconfig, etc.). - Syntax highlighting: shell, ini, yaml, json, python, perl, ruby, javascript.
- Line numbers: retained for files with unrecognized syntax.
- Copy function: one-click code copying capability.
Installation and Enablement¶
In the DSH environment, install the plugin via plugin_manager:
plugin_manager install_bundle target=@jianghuifr/dsh-highlight
You can also install from a local directory:
plugin_manager install_bundle target=<absolute_path_to_this_directory>
After installation, open the configuration in DSH under Plugins → This Plugin Details → Components → Dotfile Syntax Highlighting ›:
Dotfile Syntax Highlighting(enabled by default).- When disabled, these files will revert to the official plain-text preview.
- Settings are saved in the browser’s localStorage and persist after a refresh.
Typical Usage¶
- Open a session containing dotfiles in the DSH Web UI.
- Once the system identifies the files, the plugin automatically enables syntax highlighting and line number display.
- To turn off highlighting, simply disable
Dotfile Syntax Highlightingin the plugin configuration page.
Use Cases and Notes¶
- Use cases: Developers or users who need to view, debug, or demonstrate dotfiles for teaching purposes.
- Notes:
- The plugin runs with the permissions of the current DSH process.
- It is recommended to review the source code and license before installation.
- This plugin is maintained by the community and has no official affiliation with DeepSeek / High-Flyer.
Conclusion¶
dsh-highlight makes reading and debugging dotfiles more intuitive through syntax coloring and line numbers. For more details, visit the plugin directory page or the GitHub repository.