Skip to content

Add Syntax Highlighting for Code Files #4

Open
1 of 1 issue completed
Open
Feature
1 of 1 issue completed
@chrisdedman

Description

@chrisdedman

Description

To improve readability in the editor, we need to implement syntax highlighting for code files (e.g., C++, Python, JavaScript) using Qt6's QSyntaxHighlighter class.

Tasks

  • Research and integrate QSyntaxHighlighter for syntax highlighting.
  • Define and implement syntax highlighting rules for C++ first.
  • Integrate syntax highlighting into the editor’s text display (using QTextEdit or QPlainTextEdit).
  • Handle file type detection to automatically apply the correct syntax highlighting (.c and .cpp first).
  • Implement with multiple languages.
  • Test syntax highlighting.

Supported Languages:

This is the list of currently supported languages, in progress, and future implementation. Feel free to contribute to any of those or implement any other language not listed here.

  • Markdown
  • YAML
  • C/C++ (in progress)
  • Golang
  • Python
  • Elixir (in progress)

Tip

For a guide on how to implement new syntax highlight or contribute to an existing one, refer to the wiki page

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    Status

    In Progress

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions