https://github.com/koxudaxi/t-linter-pycharm-plugin
https://github.com/koxudaxi/t-linter-pycharm-plugin
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/koxudaxi/t-linter-pycharm-plugin
- Owner: koxudaxi
- License: mit
- Created: 2025-05-31T07:46:38.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-07-07T01:19:46.000Z (3 months ago)
- Last Synced: 2025-07-22T01:08:04.944Z (3 months ago)
- Language: Kotlin
- Size: 782 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# TLinter PyCharm Plugin
[](https://opensource.org/licenses/MIT)
[](https://plugins.jetbrains.com/plugin/27541-tlinter)TLinter provides syntax highlighting for PEP 750 template strings in PyCharm.
## Installation
Install directly from the JetBrains Marketplace:
- [TLinter Plugin](https://plugins.jetbrains.com/plugin/27541-tlinter)Or install from within PyCharm:
1. Go to **Settings/Preferences** → **Plugins**
2. Search for "TLinter"
3. Click **Install**## Features
- 🎨 Automatic language injection for template strings with type annotations
- 📝 Support for `Annotated[Template, "language"]` pattern
- 🔤 Type alias support (e.g., `type html = Annotated[Template, "html"]`)
- 🔍 Function parameter type inference
- 🌐 Support for HTML, SQL, JSON, YAML, JavaScript, TypeScript, CSS, and more
## Usage
```python
from typing import Annotated
from string.templatelib import Template# Define variables for the templates
title = "Welcome"
content = "Hello, World!"
user_id = 123
message = "Important notification"# Automatic HTML syntax highlighting
page: Annotated[Template, "html"] = t"""
{title}
{content}
"""
# SQL highlighting
query: Annotated[Template, "sql"] = t"SELECT * FROM users WHERE id = {user_id}"# Type alias support
type html = Annotated[Template, "html"]
content: html = t"{message}"
```## License Requirements
While this plugin itself is free and open source, certain language injection features depend on your PyCharm edition:
### Community Edition (Free)
The following languages are supported in PyCharm Community Edition:
- **HTML/XML** - Full syntax highlighting and code assistance
- **JSON** - Full syntax highlighting and validation
- **YAML** - Full syntax highlighting and validation### Professional Edition (Paid License Required)
Advanced language support requires PyCharm Professional Edition:
- **SQL** - Database tools and SQL dialect support are Professional-only features
- **JavaScript/TypeScript** - JS/TS support requires the Professional edition
- **CSS** - Advanced CSS features are part of the Web development toolsetFor detailed information about PyCharm editions and their features, visit [JetBrains PyCharm Comparison](https://www.jetbrains.com/pycharm/features/editions_comparison_matrix.html).
**Note:** The plugin will still inject these languages in Community Edition, but you won't get syntax highlighting, code completion, or error detection without the corresponding language support from PyCharm Professional.