dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
Rich syntax highlighting for DSH Markdown: activates builtin Shiki theme colors and styles diff codeblocks with green/red backgrounds and split-view
DSH (DeepSeek Harness) Web GUI 消息正文 Markdown 代码块增强插件:激活内置 Shiki 语法高亮,赋予 Diff 代码块 + 浅绿 / - 浅红底色,支持 左右分列 (Split) 与单栏 (Unified) 一键切换 以及 Diff 智能自动语言识别与首行提示双重语法高亮。
+ 渲染为柔和浅绿背景(GitHub 风格);- 渲染为柔和浅红背景;@@ 渲染为浅蓝背景;diff --git a/.../file.py 或 +++ b/xxx.js),无需手动标记;若无文件路径,通过内置启发式特征打分器自动识别 Python、JavaScript、HTML 语法特征;# lang: python 或 // lang: js);[ ◫ 分栏 / ≡ 单栏 ] 切换按钮;在终端中执行以下命令(任选一种):
dsh plugin --profile web add "github:luckbiao/dsh-markdown-highlighter"
~/.dsh/custom-plugins/dsh-markdown-highlighter~/.dsh/profiles/web/cordis.patch.yml 中追加:
- insert:
- id: markdown-highlighter
name: '@my-plugins/dsh-markdown-highlighter'
dsh web 并在浏览器刷新即可生效。```python
def is_trading_day(today: str) -> bool:
# 自动识别交易日
return today in trade_dates
```
插件会自动提取文件后缀并渲染语言彩色:
```diff
diff --git a/algo_small_value.py b/algo_small_value.py
--- a/algo_small_value.py
+++ b/algo_small_value.py
@@ -178,5 +178,8 @@ class Algo_small_value:
+ def _fallback_to_cache(self, reason: str):
+ now = time.time()
+ if self._cached_data is not None:
+ return self._cached_data
+ return None
```
```diff
# lang: python
@@ -160,5 +160,8 @@ def before_reset(self) -> None:
- self.is_trading_day = is_trading_day()
+ self.is_trading_day = False
+ self.trading_day_date = None
+ today = datetime.date.today()
+ self.is_trading_day = is_trading_day(today=today.isoformat())
```