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

Add syntax hilghting in shiny app #52

Open
W-Mohammed opened this issue Mar 21, 2024 · 2 comments
Open

Add syntax hilghting in shiny app #52

W-Mohammed opened this issue Mar 21, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@W-Mohammed
Copy link
Collaborator

The shiny app allows users to display R code in a tab.

Screenshot 2024-03-21 054326

Adding syntax highlighting could improve the readability and help the code review process.

One possible solution is to use the highlight.js JavaScript library, which is widely used and provides a simple and efficient way to highlight and style code on web pages.

The GitHub-hosted package, codeModules, provides the renderCode/codeOutput functions, which show code with syntax highlighting.

The codeModules package is licensed under GPLv3, which allows us to modify the source code of its functions and integrate them into the assertHE package (provided that it is also licensed under GPLv3?).

@W-Mohammed W-Mohammed added the enhancement New feature or request label Mar 21, 2024
@RobertASmith
Copy link
Contributor

RobertASmith commented Mar 21, 2024

I'd personally leave this as a to-do, one for the future. Most important to ensure the concept & core functionality is viable first.

@W-Mohammed
Copy link
Collaborator Author

I agree!

I only documented this feature/enhancement for completion purposes and to preserve my research on the matter for whoever works on it.

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

No branches or pull requests

2 participants