当前位置:网站首页>快捷键修改typora字体----自制脚本
快捷键修改typora字体----自制脚本
2022-08-09 15:51:00 【Coder_貔貅】
1、点击链接下载安装https://autohotkey.com/download/ahk-install.exe
2、创建txt文本将下面的代码复制进去
alt+0 黑色 alt+1 红色 alt+2 橙色 alt+3 黄色 alt+4 绿色 alt+5 浅蓝色......
; Typora
; 快捷增加字体颜色
; SendInput {Text} 解决中文输入法问题
#IfWinActive ahk_exe Typora.exe
{
;
^!o::addFontColor("orange")
;
^!r::addFontColor("red")
;
^!b::addFontColor("cornflowerblue")
}
;
addFontColor(color){
clipboard := "" ;
Send {ctrl down}c{ctrl up} ;
SendInput {TEXT}<font color='%color%'>
SendInput {ctrl down}v{ctrl up} ;
If(clipboard = ""){
SendInput {TEXT}</font> ;
}else{
SendInput {TEXT}</ ;
}
}
;
!0::addFontColor("black")
;
!1::addFontColor("red")
;
!2::addFontColor("orange")
;
!3::addFontColor("yellow")
;
!4::addFontColor("green")
;
!5::addFontColor("cornflowerblue")
;
!6::addFontColor("cyan")
;
!7::addFontColor("purple")3、修改TXT文本名后缀为.ahk
4、双击运行即可。
注意运行之后会在状态栏出现这个图标,在修改typora文本中的字体时不能关闭。
![]()
边栏推荐
- Prometheus完整安装
- 网络——ARP、DHCP、ICMP协议
- 易基因|作物育种:DNA甲基化在大豆优良品种培育中的作用研究成果
- 【科普】关于平板电脑的那些事
- 【嵌入式入门篇】嵌入式0基础沉浸式刷题篇1
- Codeforces Round # 806 (Div. 4) | | precipitation) bloodbath wudaokou
- B43 - 基于STM32单片机的自动视力检测仪
- Knowledge Bits - How to Write a Project Summary
- ECCV 2022 | BMD: 面向无源领域自适应的类平衡多中心动态原型策略
- @AllArgsConstructor 和 @NoArgsConstructor
猜你喜欢

2019强网杯高明的黑客

A42 - 基于51单片机的洗衣机设计

网络——IPv6 vs IPv4

Leetcode 算法面试冲刺 热题 HOT 100 刷题(406 416 437 438 448)(六十九)

视频聊天源码——一对一直播如何提高直播质量?

网络——IPV4地址(一)

SQL trill interview: send you a universal template, to?(key, each user to log on to the maximum number of consecutive monthly)

Vim practical skills_2. Normal mode and insert mode

网络——TCP拥塞控制

一个程序员的水平能差到什么程度?
随机推荐
网络——IPV4地址(三)
【燃】是时候展现真正的实力了!一文看懂2022华为开发者大赛技术亮点
使用SourceTree添加SSH公钥并克隆码云项目(笔记整理篇)
Reasons for slow startup of IDEA (1)
Smart Light Pole Gateway Smart Transportation Application
IDEA启动缓慢原因(一)
The Chinese Academy of Sciences slaps Google in the face: ordinary computers catch up with quantum superiority, and can solve calculations that would have taken 10,000 years in a few hours...
Leetcode 算法面试冲刺 热题 HOT 100 刷题(406 416 437 438 448)(六十九)
自定义过滤器和拦截器实现ThreadLocal线程封闭
Selenium的安装
Insert a number and sort "Suggested Favorites"
Video chat source code - how to improve the quality of one-to-one live broadcast?
「我觉得AI领域乙烷」网友:你说的太多了,让AI来总结一下
网络——IPv6(一)
QuickSort(快速排序)&&MergeSort(归并排序)的效率比较[搭配LeetCode例题]
The article details of the qiucode.cn website realize the code block can be copied by clicking the button
OpenCV 图像变换之 —— 直方图均衡化
二分法
Now, how to choose a stage rental LED display?
3种特征分箱方法!