Looking for WYSIWYG code highlighting for a text_area that works with importmaps in rails 8?

Hey just thought I’d see if anyone had any lightweight gems or js packages for WYSIWYG code highlighting that are easy to implement in rails 8 with importmaps?

I have a text area that is a form field where a user can type in some code and I just want some super basic syntax highlighting.

I was using the ace editor for it but having some difficulty with adding it using importmaps instead of webpacker. Would love some suggestions for either getting that to work or something similar please, thanks!

1 Like

Build A Markdown Editor With Ruby On Rails And Redis

Ruby On Rails Tutorial: Build A Markdown Editor With Ruby On Rails And Redis