Skip to content

[DOCS] Add word-wrap support for code snippets in documentation #181

@Ashish-Pandey62

Description

@Ashish-Pandey62

Type of documentation issue

Other (please specify in description)

Documentation page URL

https://docs.extralit.ai/latest/user_guide/schema_definition/#advanced-usage

Current content

In the documentation pages, code snippets do not support word wrapping. As a result, long lines extend horizontally and require scrolling, which makes the content harder to read especially on smaller screens devices.

This affects readability and usability when users are trying to understand examples or follow along with the documentation.

Steps to observe:

  • Open any documentation page containing code snippets.
  • View a snippet with long lines of code.
  • Notice that the code does not wrap and requires horizontal scrolling.
Image Image

Suggested fix or improvement

Add a word-wrap toggle icon next to the existing copy icon in code blocks.

  • The toggle should allow users to turn word wrap on or off
  • The default behavior will remain unchanged to preserve formatting

I would like to work on this issue. Please assign it to me.

User Perspective

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions