IdJoel

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

  •  
  •   IdJoel · Apr 2, 2021 · 1317 views
    This topic created in 1867 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   ·   5746 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 03:38 · PVG 11:38 · LAX 20:38 · JFK 23:38
    ♥ Do have faith in what you're doing.