Coder Social home page Coder Social logo

短语加强 about runany HOT 1 OPEN

bdancerlc avatar bdancerlc commented on August 10, 2024
短语加强

from runany.

Comments (1)

hui-Zz avatar hui-Zz commented on August 10, 2024

虽然说短语功能只是RunAny的其中一个功能,但是作为程序员我也是有常用代码片段管理和输出的需求
主要难点考虑在于保存和编辑:

  1. 保存由于代码段落过多篇幅很长,是不适合保存在RunAny.ini的一堆程序列表里面的
  2. 编辑代码的话,代码高亮的需求肯定是很想要的
    目前界面编辑上是有很多可以改进的部分,后续是会慢慢优化的

不过我自己现在的解决方案是:使用插件读取代码片段文件的方式来输出,这样平时改代码也是方便的

huiZz_Text.ahk插件中有text_file_content这个函数
[复制或输出文件文本的内容]
参数说明:getZz:选中的文件 或 传递文件路径(可使用无路径)
isSend:0-显示并保存到剪贴板;1-输出结果
encoding:使用不同编码读取文件

这样就可以直接把文本的内容以UTF-8复制到剪贴板
文件名|huiZz_Text[text_file_content](代码文件路径,0,utf-8)

还可以用热字段串形式,直接把代码输出到编辑器里,非常高效(文件如果重名不多可以用下面的无路径写法)
文件名:*X:热字段串|huiZz_Text[text_file_content](%"文件名.py"%,1,utf-8)

from runany.

Related Issues (20)

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.