Anki制卡助手使用手册

Anki制卡助手使用手册


03.自定义标记功能

<p>讲解了自定义标记功能的使用方法,涵盖如何为文本添加网页标签、设置操作快捷键、利用智能模板实现挖空及其关联功能的调用原理,并通过实例演示如何通过配置实现加粗、颜色标注、填空等操作。</p> <p>【anki批量制卡-03.自定义标记功能】 <a href="https://www.bilibili.com/video/BV1xtxozDE1G/?share_source=copy_web&amp;vd_source=aa0bf1c05d4ce84f835055deef278df5">https://www.bilibili.com/video/BV1xtxozDE1G/?share_source=copy_web&amp;vd_source=aa0bf1c05d4ce84f835055deef278df5</a></p> <p><img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=04ce24963295eec55e0db4c6e6c97d33&amp;amp;file=file.png" alt="" /></p> <hr /> <h3><strong>自定义标记功能介绍 <a href="#?seek_t=0">00:00</a></strong></h3> <ul> <li><strong>功能位置与基本说明 <a href="#?seek_t=6">00:06</a></strong> 自定义标记位于配置区右侧,包含两个编辑框,分别用于输入网页代码的<strong>前缀</strong>和<strong>后缀</strong>。</li> <li><strong>功能用途概述 <a href="#?seek_t=22">00:22</a></strong> 核心功能是<strong>为选中的文本内容,自动在其前后插入预设的代码</strong>,从而实现快速格式化。</li> </ul> <hr /> <h3><strong>网页标签使用示例 <a href="#?seek_t=30">00:30</a></strong></h3> <ul> <li><strong>加粗文本标签的应用 <a href="#?seek_t=43">00:43</a></strong> 为实现加粗效果,可在前缀框输入 <code>&amp;lt;strong&amp;gt;</code>,在后缀框输入 <code>&amp;lt;/strong&amp;gt;</code>。</li> <li><strong>正确结束标签写法 <a href="#?seek_t=87">01:27</a></strong> 结束标签必须使用<strong>反斜杠</strong> <code>/</code>,正确形式为 <code>&amp;lt;/strong&amp;gt;</code>,不能写成 <code>&amp;lt;\strong&amp;gt;</code>。</li> </ul> <hr /> <h3><strong>标记操作流程演示 <a href="#?seek_t=97">01:37</a></strong></h3> <ul> <li><strong>选中内容并应用标记 <a href="#?seek_t=105">01:45</a></strong> 选中目标文字后,点击“标记”按钮,系统即自动为其包裹上前缀和后缀代码。</li> <li><strong>加粗效果实现原理 <a href="#?seek_t=113">01:53</a></strong> 视觉效果由插入的完整标签 <code>&amp;lt;strong&amp;gt;目标文字&amp;lt;/strong&amp;gt;</code> 实现。</li> </ul> <hr /> <h3><strong>其他标签扩展应用 <a href="#?seek_t=122">02:02</a></strong></h3> <ul> <li><strong>删除线标签(S标签) <a href="#?seek_t=124">02:04</a></strong> 使用 <code>&amp;lt;s&amp;gt;</code> 和 <code>&amp;lt;/s&amp;gt;</code> 可为文本添加删除线,但此效果在制卡中不常用。</li> <li><strong>H2标题标签尝试 <a href="#?seek_t=170">02:50</a></strong> 可手动配置H2标签(<code>&amp;lt;h2&amp;gt;</code>, <code>&amp;lt;/h2&amp;gt;</code>)。HTML中H1至H6代表六级标题,字号从H1到H6依次减小。</li> <li><strong>H1标签测试 <a href="#?seek_t=198">03:18</a></strong> 同样可通过配置 <code>&amp;lt;h1&amp;gt;</code> 和 <code>&amp;lt;/h1&amp;gt;</code> 将选中文本设置为一级标题。</li> </ul> <hr /> <h3><strong>复杂样式标记:文本颜色设置 <a href="#?seek_t=216">03:36</a></strong></h3> <ul> <li><strong>获取红色文本代码 <a href="#?seek_t=216">03:36</a></strong> 可通过编辑器的“取代码”功能,获取已着色文本的完整HTML代码,其中包含颜色样式定义。</li> <li><strong>颜色标记实现方式 <a href="#?seek_t=244">04:04</a></strong> 将表示红色样式的复杂HTML代码段,分别拆解为前缀和后缀,并填入配置区的对应编辑框。</li> <li><strong>通用颜色应用原则 <a href="#?seek_t=274">04:34</a></strong> 无需记忆所有颜色代码,理解此原理后,任何颜色的代码均可从网络查询获取并使用。</li> </ul> <hr /> <h3><strong>智能模板挖空功能 <a href="#?seek_t=283">04:43</a></strong></h3> <ul> <li><strong>智能模板标记形式 <a href="#?seek_t=296">04:56</a></strong> 智能模板使用其特定的标记语法来实现挖空效果。</li> <li><strong>语义与强调挖空设置 <a href="#?seek_t=299">04:59</a></strong> 可将需要挖空的内容(如“语义”或“强调”等文字)用智能模板的标记包裹。</li> <li><strong>创建卡片步骤 <a href="#?seek_t=304">05:04</a></strong> 创建牌组,选择“智能模板”,点击“网页制卡”即可生成带有挖空效果的卡片。</li> <li><strong>Anki卡片代码结构 <a href="#?seek_t=340">05:40</a></strong> 生成的卡片代码包含样式定义,其核心是实现挖空功能的特定HTML结构。</li> </ul> <hr /> <h3><strong>默认填空标记(C1) <a href="#?seek_t=366">06:06</a></strong></h3> <ul> <li><strong>Anki默认挖空标记 <a href="#?seek_t=368">06:08</a></strong> Anki原生的填空标记是<code>C1</code>,需要在自定义标记中配置对应的前后缀。</li> <li><strong>Anki填空标记调用 <a href="#?seek_t=381">06:21</a></strong> <code>C1</code>是Anki自带填空功能使用的标记,配置后点击“标记”按钮即可插入。</li> <li><strong>生成默认填空卡片 <a href="#?seek_t=389">06:29</a></strong> 插入<code>C1</code>标记后添加卡片,会生成符合Anki标准填空模板的卡片。</li> </ul> <hr /> <h3><strong>快捷键设置方法 <a href="#?seek_t=410">06:50</a></strong></h3> <ul> <li><strong>热键配置位置 <a href="#?seek_t=416">06:56</a></strong> 标记功能的默认快捷键为 <code>Ctrl + 1</code>。</li> <li><strong>快捷键调用功能 <a href="#?seek_t=419">06:59</a></strong> 选中文本后,按下 <code>Ctrl + 1</code> 即可直接应用当前设置的自定义标记,无需点击按钮。</li> </ul> <hr /> <h3><strong>关联功能说明 <a href="#?seek_t=424">07:04</a></strong></h3> <ul> <li><strong>填空模式自动插入 <a href="#?seek_t=435">07:15</a></strong> 开启“填空模式”后,只需<strong>选中文本后松开鼠标</strong>,系统便会自动为其插入当前设置的标记内容。</li> <li><strong>举例:五角星标记 <a href="#?seek_t=460">07:40</a></strong> 例如,若将标记内容设置为 <code>★★</code>,则选中任意文本后,其前后会自动被添加五角星。</li> <li><strong>下划线挖空调用机制 <a href="#?seek_t=470">07:50</a></strong> “下划线挖空”、“出题挖空”、“颜色挖空”等功能,其底层均<strong>调用并依赖于自定义标记中设置的内容</strong>。</li> <li><strong>下划线标记设置 <a href="#?seek_t=483">08:03</a></strong> 在为此类功能配置新标记时,建议<strong>先关闭填空模式</strong>,以避免误触发自动插入。</li> <li><strong>标记内容变更影响 <a href="#?seek_t=499">08:19</a></strong> 当前所有挖空功能共用同一套标记设置。<strong>更改自定义标记的内容,所有关联功能的输出将同步更新</strong>。</li> <li><strong>H3标签测试 <a href="#?seek_t=507">08:27</a></strong> 若将标记设置为 <code>H3</code>,那么点击“下划线挖空”时,插入的内容就是 <code>H3</code>。</li> <li><strong>出题与颜色挖空一致性 <a href="#?seek_t=518">08:38</a></strong> “出题挖空”和“颜色文本挖空”同样调用已设置的标记内容,其行为与“下划线挖空”完全一致。</li> </ul>

页面列表

ITEM_HTML