IdJoel

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

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

    要能支持 YAML,PROPERTIES,XML, JSON, HTML 这几种类型

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

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