Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

211
Views
¿Cómo definir overlayMode para easyMDE?

Intenté definir el modo personalizado para resaltar la sintaxis de reducción personalizada con easyMDE de esta manera:

 CodeMirror.defineMode("mymode", function () { return { token: function (stream, state) { if (stream.match("aaa")) { return "style1"; } else if (stream.match("bbb")) { return "style2"; } else { stream.next(); return null; } }, }; }); window.easyMDE = new EasyMDE({ element: $('#textarea')[0], parsingConfig: { allowAtxHeaderWithoutSpace: true, }, overlayMode: { mode: CodeMirror.getMode({}, 'mymode'), combine: true, }, });

jsFiddle con ejemplo https://jsfiddle.net/6ycwmL04/3/

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!