{"id":20130501,"url":"https://github.com/davidwinter/syntaxedit","last_synced_at":"2025-04-09T16:15:40.709Z","repository":{"id":65268604,"uuid":"588651304","full_name":"davidwinter/syntaxedit","owner":"davidwinter","description":"A simple Python Qt syntax highlighting widget","archived":false,"fork":false,"pushed_at":"2023-05-26T16:05:07.000Z","size":339,"stargazers_count":4,"open_issues_count":12,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-09T16:15:32.570Z","etag":null,"topics":["pygments","pyqt","pyside","python","qt","qtpy","syntax-highlighting"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/davidwinter.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":["davidwinter"]}},"created_at":"2023-01-13T16:42:00.000Z","updated_at":"2024-02-29T09:16:47.000Z","dependencies_parsed_at":"2024-11-13T20:39:05.496Z","dependency_job_id":"5a3c5db6-24ea-4f9e-81c9-1469a581fc0d","html_url":"https://github.com/davidwinter/syntaxedit","commit_stats":{"total_commits":44,"total_committers":3,"mean_commits":"14.666666666666666","dds":"0.13636363636363635","last_synced_commit":"6bda13b161baa36b7fea8a8b6108ff3270585473"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidwinter%2Fsyntaxedit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidwinter%2Fsyntaxedit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidwinter%2Fsyntaxedit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidwinter%2Fsyntaxedit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidwinter","download_url":"https://codeload.github.com/davidwinter/syntaxedit/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248065282,"owners_count":21041872,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pygments","pyqt","pyside","python","qt","qtpy","syntax-highlighting"],"created_at":"2024-11-13T20:38:52.526Z","updated_at":"2025-04-09T16:15:40.681Z","avatar_url":"https://github.com/davidwinter.png","language":"Python","funding_links":["https://github.com/sponsors/davidwinter"],"categories":[],"sub_categories":[],"readme":"# syntaxedit\n\n[![test](https://github.com/davidwinter/syntaxedit/workflows/ci_cd/badge.svg)](https://github.com/davidwinter/syntaxedit/actions?query=workflow%3Aci_cd) [![PyPI](https://img.shields.io/pypi/v/syntaxedit)](https://pypi.org/project/syntaxedit/)\n\n\u003e A simple Python Qt syntax highlighting widget\n\n![syntaxedit](https://raw.githubusercontent.com/davidwinter/syntaxedit/main/example.png)\n\n## Features\n\n- Extensive [syntax](https://pygments.org/languages/) and [theme](https://pygments.org/styles/) support - powered by [Pygments](https://pygments.org)\n- Set font and font size\n- Set indentation size\n\n## Usage\n\n1. Install package\n\n   ```shell\n   pip install syntaxedit\n   ```\n\n   Or\n\n   ```shell\n   poetry add syntaxedit\n   ```\n\n2. In your app, include the package, and create a `SyntaxEdit` widget:\n\n    ```python\n    from syntaxedit.core import SyntaxEdit\n\n    code = \"\"\"# Todo list\n\n    - [ ] Go shopping\n    - [x] Walk the dog\"\"\"\n\n    widget = SyntaxEdit(code)\n    ```\n\n### Available options\n\n- `content`: the initial content for the widget. **Default:** `\"\"`\n- `parent`: parent Qt widget for SyntaxEdit. **Default:** `None`\n- `font`: the font family for the widget. **Default:** `\"Courier New\"`\n- `font_size`: size to use for the font. **Default:** `13`\n- `syntax`: the code [syntax](https://pygments.org/languages/) to use. **Default:** `\"Markdown\"`\n- `theme`: the syntax [theme](https://pygments.org/styles/) to use. **Default:** `\"solarized-light\"`\n- `indentation_size`: the size for indentation. **Default:** `4`\n- `use_theme_background`: whether to use the background colour from the theme or to not set one. **Default:** `True`\n\n## Authors\n\nBy [David Winter](https://github.com/davidwinter)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidwinter%2Fsyntaxedit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidwinter%2Fsyntaxedit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidwinter%2Fsyntaxedit/lists"}