mashpolo
V2EX  ›  Vue.js

vue-codemirror 组件中对空格,特殊字符的显示方式

  •  
  •   mashpolo ·
    mashpolo · Dec 15, 2016 · 6643 views
    This topic created in 3511 days ago, the information mentioned may be changed or developed.

    为了避免出现编辑时候有特殊字符,或者多个空格,或者在 windows 上编辑传到 linux 上面出现编码问题,想在网页的编辑框中突出显示出这一块。

    类似 windows 下 notepad 的效果,比如,将空格替换成....或者其他的方式。

    现在的编辑插件用的 codemirror ,看了下文档,貌似没有提供这种配置,大家是否能提供下思路呢?

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2925 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 14:44 · PVG 22:44 · LAX 07:44 · JFK 10:44
    ♥ Do have faith in what you're doing.