Skip to content

More like a question, rather than issue #5444

Answered by InspiredGuy
hngts asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @hngts , thank you for reaching out about a potential contribution. You can find a helpful instruction on Ace website https://ace.c9.io/#nav=higlighter, but here's the condensed and complete (more or less) version:

  • create a mode and highlight rules (in your case seems like this is done already, but in a single file - we recommend splitting them up)
  • generate tokens for syntax highlighting tests https://github.com/ajaxorg/ace/blob/master/src/mode/_test/Readme.md
  • add tests for the mode specific behaviours, if your mode has custom behaviours and not just inherits some other mode with minor tweaks
  • add mode to the modelist src/ext/modelist.js
  • add mode type declaration to ace-modes.d.ts
  • add…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@hngts
Comment options

Answer selected by marinsokol5
Comment options

You must be logged in to vote
1 reply
@hngts
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #5443 on January 02, 2024 17:18.