Skip to content

Instantly share code, notes, and snippets.

@probe301
probe301 / default.custom.yaml
Last active June 25, 2025 07:09 — forked from lotem/default.custom.yaml
小狼毫中英文切换设置
# ascii_composer 是处理切换中英文时怎么对待当前临时编辑区字符的
# 需要找到比 toggle 更加明确的, 直接设定英文 / 中文的办法
# 中西文切換鍵的默認設置寫在 default.yaml 裏面
# 以下的 default.custom.yaml 在全局範圍重定義該組快速鍵
#
# 可用的按鍵有 Caps_Lock, Shift_L, Shift_R, Control_L, control_R
# Mac 系統上的鼠鬚管不能區分左、右,因此只有對 Shift_L, Control_L 的設定起作用
#
@probe301
probe301 / VBAWrapText.vb
Created September 14, 2011 09:44 — forked from JoBrad/VBAWrapText.vb
[VBA] Wrap text at 69 characters, with no orphans
Private Function wrapText(text As String, Optional wrapLength As Integer) As String
Dim x As Integer, newString() As String, preSplit() As String, mySplit() As String, maxWords As Long, y As Integer, finalString As String, isEnd As Boolean
'Default wraplength to 69
If wrapLength = 0 Then wrapLength = 69
x = 0
y = 0
z = 0
'Check to see if ay wrapping should be done
If Len(text) > wrapLength Then