wuhaoworld
V2EX  ›  问与答

sublime text 中文折行的问题

  •  
  •   wuhaoworld · Oct 6, 2014 · 3804 views
    This topic created in 4329 days ago, the information mentioned may be changed or developed.
    平时会用 sublime text 编辑一些文档,中英文混合的时候折行就出错了,效果如下:



    找到一篇解决方法: http://typeof.net/m/sublime-text-2-chinese-wrap-fix.html 是通过在语法里增加「中文单词」可以让 ST2 正确折行,该篇文章也给出了源码,但是问题又来了,如何添加中文语法呢,要修改什么文件或配置?
    3 replies    2014-10-07 17:05:43 +08:00
    Twinkle
        1
    Twinkle  
       Oct 6, 2014
    看到[但是问题又来了]以为下一句是[挖掘机技术哪家强]..........
    rainy3636
        2
    rainy3636  
       Oct 7, 2014 via iPhone
    @Twinkle blue shit is best
    青いたわごとは最強です
    old9
        3
    old9  
       Oct 7, 2014
    我是修改了自带 Text.sublime-package 和 HTML.sublime-package 里面对应的 .tmLanguage 文件,然后把修改后的 .sublime-package 放到 Installed Packages 目录下。

    不知道有没有更好的方法,作者也在 V2EX, @infinte 一下。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3456 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 04:35 · PVG 12:35 · LAX 21:35 · JFK 00:35
    ♥ Do have faith in what you're doing.