IdJoel

请教一下前端如何处理代码格式的校验和高亮

  •  
  •   IdJoel · Apr 2, 2021 · 1367 views
    This topic created in 1904 days ago, the information mentioned may be changed or developed.

    要能支持 YAMLPROPERTIESXML, JSON, HTML 这几种类型

    个人想法是通过正则来实现格式的校验, 如果没有轮子估计就要自己去研究正则来实现, 请教下各位老哥有没有现成的轮子来使用。

    2 replies    2021-04-02 16:26:40 +08:00
    acthtml
        1
    acthtml  
       Apr 2, 2021   ❤️ 1
    highlight.js
    rbe
        2
    rbe  
       Apr 2, 2021   ❤️ 1
    monaco editor / ace editor / codemirror.js 还有楼上的 highlight.js 等都能满足你需求
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   849 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 20:15 · PVG 04:15 · LAX 13:15 · JFK 16:15
    ♥ Do have faith in what you're doing.