Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
如何测试
在 Mogan 中插入:
将鼠标悬浮到代码区域,右上角:
点击「复制」:
使用语言菜单切换标签:
cpp-code→python-code移开鼠标:
测试文档
TeXmacs/tests/tmu/209_13.tmu2026/01/29 代码悬浮菜单-语言切换
What
cpp-code→python-code)自动补齐所需宏包。How
src/Edit/Interface/edit_mouse.cppsrc/Plugins/Qt/QTMCodePopup.cppsrc/Plugins/Qt/QTMCodePopup.hppTeXmacs/progs/prog/prog-edit.scm2026/01/28 代码悬浮菜单-复制
What
verbatim。How
QTMCodePopup,并在qt_simple_widget/QTMWidget接入显示与滚动同步。edit_mouse.cpp中沿祖先路径查找代码节点,使用is_verbatim()判断。code-popup-copy,使用clipboard-copy-export "verbatim"实现纯文本复制。#code_popup与#code-popup-button样式。is_verbatim()补齐python-code等标签,与 Scheme 侧定义对齐。