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

[FEATURE REQUEST] Add code blocks #4748

Open
2 tasks done
Schrodingdong opened this issue Nov 13, 2024 · 0 comments
Open
2 tasks done

[FEATURE REQUEST] Add code blocks #4748

Schrodingdong opened this issue Nov 13, 2024 · 0 comments

Comments

@Schrodingdong
Copy link

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Is your feature request related to a problem? Please describe.
As i use drawio for structuring SE projects, sometimes having a code snippet is a good thing to have beside some diagram.

Describe the solution you'd like
Having a code toggle for the text box component, potentially with language support. As an implementation i was thinking of using markdown, something similar to:

` ` `python
print("hello world")
` ` `

Describe alternatives you've considered
As of now, the only way to cleanly integrate the code is either:

  • Manually indent / style the pasted text
  • Use a code screenshot
  • Do something similar to this

Additional context
This feature could be generalized as : "using markdown in text components"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant