Code Monkey home page Code Monkey logo

chrome-extension-text-formatting's Introduction

logo Format your text anytime in the web editor.

通过谷歌扩展,快速将选中文本,格式化为符合 中文文案排版指北 的文本。

已经支持的平台:

How to install

  1. 打开 Chrome 扩展页面 chrome://extensions/
  2. 下载本项目至本地
  3. 点击左上角 Load unpacked 按钮,加载此项目
  4. 如果扩展程序需要特定的权限或数据,您会看到提示。若要批准,请点击添加扩展程序

完成安装后,将会看到本扩展被添加到扩展列表。

How to use

  1. 选择你需要格式化的文本内容
  2. 右键呼出菜单,选择 Text formatting 按钮
    • 如果当前选择内容处于可编辑输入框内,会完成自动文本替换
    • 如果当前选择内容处于不可编辑状态,可打开控制台查看格式化后的内容

Update Logs

  1. 【2023-10-27】,新增对谷歌文档 Excel 的支持

Next

写给自己用的扩展,计划逐步兼容语雀文档、有道云、飞书文档、掘金编辑器、Github issues 输入框,感兴趣可提前 Star。

chrome-extension-text-formatting's People

Contributors

chokcoco avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

mehmetpeker1

chrome-extension-text-formatting's Issues

关于语雀替换文本的一个方案讨论

你好,我看了你公众号的那篇文章,我最近也在写类似的插入功能,我最后使用了一个过时的api解决了问题,我去语雀试了一下,在焦点没有失去的情况下是ok的:

function inputText(text) {
  document.execCommand("delete");
  document.execCommand("insertHTML", false, text);
}
document.addEventListener("keydown", function (event) {
      if (event.ctrlKey && event.key === "i") {
        inputText("I am pressed");
        //translateInput();
      }
    });

为了保留焦点,我使用了快捷键的方式,右键应该也能保留焦点。

添加自定义排版模式?

太好了,一直想找个这种东西,但是自己又懒的写。

希望添加自定义排版模式。
比如我有以下一段文本:
我创建了一个端口号在4325的HttpListener,然后再进行的以下操作。
应该整理为:
我创建了一个端口号在 4325 的 HttpListener ,然后再进行的以下操作。
但是我自己写笔记的时候用的自己的框架(html),需要写成:
我创建了一个端口号在 4325 的 <code>HttpListener</code> ,然后再进行的以下操作。
所以能否添加个自定义格式。

这段文本里面说不准就有语法错误……

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.