{"id":35542413,"url":"https://github.com/php-collective/djot-intellij","last_synced_at":"2026-01-13T23:41:28.949Z","repository":{"id":327421158,"uuid":"1109239065","full_name":"php-collective/djot-intellij","owner":"php-collective","description":"Djot IntelliJ Plugin - Djot markup language support for JetBrains IDEs (PhpStorm, IntelliJ IDEA, WebStorm, etc.)","archived":false,"fork":false,"pushed_at":"2026-01-04T03:31:08.000Z","size":117,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-13T19:44:23.326Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","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/php-collective.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-03T14:28:00.000Z","updated_at":"2026-01-04T03:31:11.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/php-collective/djot-intellij","commit_stats":null,"previous_names":["php-collective/djot-intellij"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/php-collective/djot-intellij","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-collective%2Fdjot-intellij","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-collective%2Fdjot-intellij/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-collective%2Fdjot-intellij/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-collective%2Fdjot-intellij/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/php-collective","download_url":"https://codeload.github.com/php-collective/djot-intellij/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/php-collective%2Fdjot-intellij/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28405310,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2026-01-04T05:08:55.886Z","updated_at":"2026-01-13T23:41:28.943Z","avatar_url":"https://github.com/php-collective.png","language":"Kotlin","funding_links":[],"categories":["Editors \u0026 IDE Support"],"sub_categories":["JetBrains IDEs"],"readme":"# Djot IntelliJ Plugin\n\n[![JetBrains Marketplace](https://img.shields.io/jetbrains/plugin/v/29244-djot.svg)](https://plugins.jetbrains.com/plugin/29244-djot)\n[![Downloads](https://img.shields.io/jetbrains/plugin/d/29244-djot.svg)](https://plugins.jetbrains.com/plugin/29244-djot)\n\nDjot markup language support for JetBrains IDEs (PhpStorm, IntelliJ IDEA, WebStorm, etc.).\n\n[![Watch the demo video](https://img.youtube.com/vi/E6K9snep79o/mqdefault.jpg)](https://www.youtube.com/watch?v=E6K9snep79o)\n \n## Features\n\n- **Syntax highlighting** via TextMate grammar\n- **Live preview** panel (split editor view)\n- **IDE theme sync** - preview follows dark/light mode\n- **Code highlighting** - syntax highlighting in code blocks (highlight.js)\n- **Export to HTML** - full Djot rendering via embedded djot.js\n- **Live Templates** - code snippets for common Djot patterns\n- **Tool window** for standalone preview\n- **File type** recognition for `.djot` files\n\n## Requirements\n\n- JetBrains IDE 2024.1+\n- Java 17+\n\n## Installation\n\n### From JetBrains Marketplace\n\n1. In your IDE: **Settings → Plugins → Marketplace**\n2. Search for **\"Djot\"**\n3. Click **Install**\n\nOr install directly: [JetBrains Marketplace](https://plugins.jetbrains.com/plugin/29244-djot)\n\n### From Disk (manual)\n\n1. Download the latest release from [GitHub Releases](https://github.com/php-collective/djot-intellij/releases), or build it yourself:\n   ```bash\n   ./gradlew buildPlugin\n   ```\n2. In your IDE: Settings → Plugins → ⚙️ → Install Plugin from Disk\n3. Select the `djot-intellij-*.zip` file (in `build/distributions/` if built locally)\n4. Restart the IDE\n\n## Usage\n\n1. Open any `.djot` file\n2. Editor opens in split view (editor + preview)\n3. Preview updates live as you type\n4. Right-click for \"Export to HTML\" option\n5. Use `Ctrl+Shift+D` to toggle preview tool window\n\n## Live Templates\n\nType a prefix and press `Tab` to expand. Available templates:\n\n| Prefix                            | Description                       |\n|-----------------------------------|-----------------------------------|\n| `djh1`-`djh6`                     | Headings                          |\n| `djb`, `dji`, `djc`               | Bold, italic, code                |\n| `djhi`, `djsup`, `djsub`          | Highlight, superscript, subscript |\n| `djins`, `djdel`                  | Insert, delete                    |\n| `djlink`, `djlinkref`, `djimg`    | Links and images                  |\n| `djcode`, `djraw`                 | Code blocks                       |\n| `djquote`, `djdiv`, `djhr`        | Blockquote, div, horizontal rule  |\n| `djul`, `djol`, `djtask`, `djdef` | Lists                             |\n| `djtable`                         | Table                             |\n| `djfn`, `djfndef`                 | Footnotes                         |\n| `djmath`, `djmathblock`           | Math                              |\n| `djattr`, `djid`, `djspan`        | Attributes                        |\n| `djfront`                         | YAML frontmatter                  |\n| `djcomment`                       | Comment block                     |\n\n## Preview Rendering\n\nThe plugin supports two rendering engines, configurable via **Settings \u003e Tools \u003e Djot**:\n\n### djot.js (default)\n\nUses [djot.js](https://github.com/jgm/djot.js) for accurate Djot rendering with:\n- Code syntax highlighting (highlight.js)\n- IDE theme synchronization (dark/light)\n- Task list checkboxes\n- Full Djot feature support\n- No additional dependencies required\n\n### php-djot (PHP CLI)\n\nUses [php-collective/djot](https://github.com/php-collective/djot) for rendering via PHP CLI:\n- Requires PHP installed on your system\n- Requires `php-collective/djot` installed in your project:\n  ```bash\n  composer require php-collective/djot\n  ```\n- Useful for consistency with PHP-based projects\n- Supports custom converter scripts\n\n## About Djot\n\n[Djot](https://djot.net) is a lightweight markup language created by John MacFarlane (creator of Pandoc). It improves on Markdown with:\n\n- Consistent, unambiguous parsing rules\n- Better syntax for highlights, super/subscript, attributes\n- No backtracking required during parsing\n\n## Links\n\n- [Djot specification](https://htmlpreview.github.io/?https://github.com/jgm/djot/blob/master/doc/syntax.html)\n- [djot.net](https://djot.net) - Official site\n- [djot-php](https://github.com/php-collective/djot-php) - PHP implementation\n\n## Development\n\n### Building\n\n```bash\n./gradlew build\n```\n\n### Running (development)\n\n```bash\n./gradlew runIde\n```\n\n### Publishing\n\nReleases are automated via GitHub Actions. When you push a tag, the plugin is automatically published to JetBrains Marketplace and a GitHub release is created.\n\n#### Release Checklist\n\n1. Update version in `build.gradle.kts`:\n   ```kotlin\n   version = \"X.Y.Z\"\n   ```\n\n2. Commit the version bump:\n   ```bash\n   git add build.gradle.kts\n   git commit -m \"Release X.Y.Z\"\n   git push\n   ```\n\n3. Create and push the tag:\n   ```bash\n   git tag X.Y.Z\n   git push origin X.Y.Z\n   ```\n\n4. GitHub Actions will automatically:\n   - Build the plugin\n   - Publish to JetBrains Marketplace\n   - Create a GitHub release with the zip attached\n\n#### Manual Publishing\n\nTo publish manually:\n\n```bash\nPUBLISH_TOKEN=\"your-token\" ./gradlew publishPlugin\n```\n\nGet your token at https://plugins.jetbrains.com/author/me/tokens\n\n#### Setup\n\nThe `PUBLISH_TOKEN` secret must be configured in GitHub repo settings (Settings → Secrets → Actions).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-collective%2Fdjot-intellij","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphp-collective%2Fdjot-intellij","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphp-collective%2Fdjot-intellij/lists"}