Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #23382: Improve display of YAML code #5029

Conversation

amousset
Copy link
Member

@amousset amousset commented Sep 4, 2023

https://issues.rudder.io/issues/23382

Simple styling to get it to look more like a code editor. Syntax highlighting is quite tricky as https://github.com/pablohirafuji/elm-syntax-highlight does not support YAML (and seems to be the only pure Elm solution) and JS-based solutions (like hightlight.js) mess with the DOM.

image
image

Before:

image

@amousset amousset force-pushed the ust_23382/improve_display_of_yaml_code branch from 1d49e1a to 8921174 Compare September 4, 2023 18:37
@amousset amousset marked this pull request as draft September 4, 2023 18:48
@amousset amousset marked this pull request as ready for review September 6, 2023 12:50
@amousset
Copy link
Member Author

amousset commented Sep 6, 2023

OK, merging this PR

@amousset amousset merged commit bdbc8a3 into Normation:branches/rudder/8.0 Sep 6, 2023
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants