Comments (4)
这算是程序员自己的需求了🤔️
感觉可以搞个插件,允许加载自定义的格式化逻辑。
from chrome-extension-text-formatting.
我有想过,类似用白名单去处理一些特殊的语法。譬如在转换完语法空格后,对部分缩写进行优化,譬如 css --> CSS,javascript --> JavaScript,但是你说的这个场景HttpListener --> <code>HttpListener</code>
,不知道有没有一些通用逻辑?可以通过特殊规则适配。或者开放一个自定义正则~
from chrome-extension-text-formatting.
我有想过,类似用白名单去处理一些特殊的语法。譬如在转换完语法空格后,对部分缩写进行优化,譬如 css --> CSS,javascript --> JavaScript,但是你说的这个场景HttpListener -->
<code>HttpListener</code>
,不知道有没有一些通用逻辑?可以通过特殊规则适配。或者开放一个自定义正则~
比如任意的英文单词啊,都可以用<code><单词/code>
的自定义格式来代替空格 单词 空格
就和readme里演示的添加单词空格一样。
from chrome-extension-text-formatting.
我有想过,类似用白名单去处理一些特殊的语法。譬如在转换完语法空格后,对部分缩写进行优化,譬如 css --> CSS,javascript --> JavaScript,但是你说的这个场景HttpListener -->
<code>HttpListener</code>
,不知道有没有一些通用逻辑?可以通过特殊规则适配。或者开放一个自定义正则~比如任意的英文单词啊,都可以用
<code><单词/code>
的自定义格式来代替空格 单词 空格
就和readme里演示的添加单词空格一样。
OK,我想到如何做的更通用了,允许自己添加自定义正则。
from chrome-extension-text-formatting.
Related Issues (2)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chrome-extension-text-formatting.