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] Option to wrap code blocks #420

Merged
merged 1 commit into from
Sep 28, 2023
Merged

[Feature] Option to wrap code blocks #420

merged 1 commit into from
Sep 28, 2023

Conversation

mishig25
Copy link
Contributor

@mishig25 mishig25 commented Sep 28, 2023

Non-wrapped code block (has a scroller) (default option)

Screenshot 2023-09-28 at 16 30 10

Wrapped code block

Screenshot 2023-09-28 at 16 30 38

Instruction

If you want to wrap your code blocks in a file, you need to put this html comment <!-- WRAP CODE BLOCKS --> which acts as a flag

feature was requested by @Narsil for making long CLI options more readable https://huggingface.co/docs/text-generation-inference/basic_tutorials/launcher

@mishig25 mishig25 merged commit 37f4191 into main Sep 28, 2023
5 checks passed
@mishig25 mishig25 deleted the wrap_code_blocks branch September 28, 2023 14:41
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

Successfully merging this pull request may close these issues.

None yet

1 participant