是否可以增加删除线

功能建议 · 126 次浏览
lh1996 创建于 2024-06-17 20:39

尊敬的开发者,您好!请问是否可以增加删除线呢,平时自己会做一些临时任务,想用记事本做一下临时的任务代办,完成一件任务就用删除线记录一条。


dalou 2024-06-17 22:27 :

您好,可以的,有两种方法:

一种是在行前输入 “对”号  √  ,整行会变淡并加上下划线;

一种是输入 “减号  空格 文字 空格 减号”  如:- 123 -    即可



你也可以在设置里面修改语法高亮来自定义


回复内容
lh1996 2024-06-17 23:00
#1
谢谢作者!这太棒了,良心作者。
dalou 回复 lh1996 2024-06-18 09:05 :

可以更新一下语法高亮,复制粘贴进去就行

dalou 最后更新于 2024-06-18 09:05
dalou 2024-06-18 09:05
#2
回复 lh1996 :
谢谢作者!这太棒了,良心作者。

 <?xml version="1.0"?>
<SyntaxDefinition name="YellowGreenTheme" xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008">
    
    <!-- 空格样式 -->
    <Color name="space" background="" exampleText=" " />
    
    <!-- 标题样式 -->
    <Color name="h1" fontWeight="normal" fontSize="30" exampleText="# 一级标题" />
    <Color name="h2" fontWeight="bold" fontSize="20" exampleText="## 二级标题(加粗)" />
    <Color name="h3" fontWeight="bold" fontSize="16" exampleText="### 三级标题(加粗)" />
    
    
    <!-- 基础样式 -->
    <Color name="bold" fontWeight="bold" exampleText="**加粗**、#### 四级标题(加粗)" />
    <Color name="italic" fontStyle="italic" exampleText="//倾斜//" />
    <Color name="underline" underline="true" exampleText="__下划线__" />
    <Color name="strikethrough" strikethrough="true" exampleText="-删除线-" />
    
    
    <!-- 高亮 -->
    <Color name="color" foreground="#69b703" exampleText="- 整行高亮" />
    <Color name="label" foreground="#69b703" fontWeight="bold" exampleText="1、/1./一、@标签、#标签#(加粗)" />
    <Color name="backcolor" background="#4d94ff22" exampleText=" [关键词] " />
    <Color name="link" foreground="#326cf3" exampleText="C:\路径" />
    
    
    <!-- 灰掉 -->
    <Color name="gray" foreground="#b3888888" exampleText="√内容、::内容::、--" />
    <Color name="gray2" foreground="#66888888" exampleText="——、__" />
    <Color name="gray3" foreground="#b3888888" strikethrough="true" exampleText="√内容" />
    
    
    <!-- 警告 -->
    <Color name="red" foreground="#f05654" fontWeight="bold" exampleText="!!内容!!、!!内容" />
    <Color name="red2" foreground="#f05654" fontWeight="bold" fontSize="20" exampleText="!!!内容" />
    
    
    <RuleSet ignoreCase="true">
        
        
        <!-- 标题样式 -->        
        <Rule color="h1">
            ^[#]{1}\s.+$
        </Rule>
        <Rule color="h2">
            ^[#]{2}\s.+$
        </Rule>
        <Rule color="h3">
            ^[#]{3}\s.+$
        </Rule>
        <Rule color="bold">
            ^[#]{4}\s.+$
        </Rule>
        
        
        <!-- 基础样式 -->
        <Rule color="bold">
            <!-- 加粗 -->
            \*\*((?!\*\*).)+\*\*
        </Rule>
        <Rule color="italic">
            <!-- 倾斜 -->
            //((?!//).)+//
        </Rule>
        <Rule color="underline">
            <!-- 下划线 -->
            [_]{2}((?![_]).)+[_]{2}
        </Rule>
        <Rule color="strikethrough">
            <!-- 删除线 -->
            &#045;\s[^&#045;]+\s&#045;
        </Rule>
        
        
        <!-- 序列 -->
        <Rule color="label">
            <!-- 1 -->
            ^\s*\d+[\s]
        </Rule>
        <Rule color="label">
            <!-- 1、 -->
            ^\s*\d+[&#12289;]
        </Rule>
        <Rule color="label">
            <!-- 1.2.1 -->
            ^\s*\d+(\.\d+)+
        </Rule>
        <Rule color="label">
            <!-- 零一二三四五六七八九十百千万亿、 -->
            ^\s*[&#38646;&#19968;&#20108;&#19977;&#22235;&#20116;&#20845;&#19971;&#20843;&#20061;&#21313;&#30334;&#21315;&#19975;&#20159;]+[&#12289;]
            
        </Rule>
        
        
        <!-- 高亮 -->
        <Rule color="label">
            <!-- 整行 -->
            ^[ ]*\-[ ].+$
        </Rule>
        
        <Rule color="label">
            <!-- @标签  -->
            @[^ ]+
        </Rule>
        <Rule color="label">
            <!-- #标签# -->
            [#][^#]+[#]
        </Rule>
        <Rule color="backcolor">
            <!--  [关键词]  -->
            [ ]\[[^\]]+\][ ]
        </Rule>
        <Rule color="link">
            <!-- 路径 -->
            ([a-zA-Z]:|\\)(\\[^\\/:\*\?\&#60;\&#62;\|\"]+)+(\\|)
        </Rule>
        
        
        <!-- 灰掉 -->
        <Rule color="gray">
            ^&#8730;
        </Rule>
        <Rule color="gray">
            ::.+::
        </Rule>
        <Rule color="gray3">
            (?&#60;=^&#8730;).+$
        </Rule>
        
        
        <!-- 警告 -->
        <Rule color="red">
            <!-- 插入式警告 -->
            !!((?!!!).)+!!
        </Rule>
        <Rule color="red2">
            <!-- 整行警告(加大) -->
            ^[!]{3}.+$
        </Rule>
        <Rule color="red">
            <!-- 整行警告 -->
            ^[!]{2}.+$
        </Rule>
        
        
        <!-- 分隔线 -->
        <Rule color="gray">
            ^[\-]+$
        </Rule>
        <Rule color="gray2">
            ^[_&#8212;]+$
        </Rule>
        
        <!-- 空格样式 -->        
        <Rule color="space">
            [ ]
        </Rule>
        
    </RuleSet>
</SyntaxDefinition>

dalou 最后更新于 2024-06-19 16:49
回复主贴