Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

AQL Syntax Highlighting

Poorvi AcharyaPoorvi Acharya78 downloads

ANNIS Query Language (AQL) syntax highlighting for code blocks.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates1

ANNIS Query Language (AQL) syntax highlighting for Obsidian code blocks.

Current release: v1.0.0

What Is ANNIS?

ANNIS (ANNotation of Information Structure) is an open-source search and visualization platform for richly annotated linguistic corpora.

  • Official ANNIS repository: https://github.com/korpling/ANNIS
  • ANNIS documentation homepage: http://corpus-tools.org/annis/

Features

  • Registers an AQL CodeMirror mode for fenced code blocks.
  • Supports token highlighting for strings, operators, metadata, node references, and node classes.
  • Ships styling in styles.css, so highlighting works out of the box after install.

Install

Community plugins (easiest)

  1. Open Settings -> Community plugins.
  2. Turn off Safe mode (if needed).
  3. Search for AQL Syntax Highlighting.
  4. Install and enable.

Manual install

  1. Download the latest GitHub release (v1.0.0).
  2. Copy manifest.json, main.js, and styles.css into:
    • <your-vault>/.obsidian/plugins/aql-syntax-highlighting/
  3. In Obsidian, open Settings -> Community plugins and enable AQL Syntax Highlighting.

Screenshot

Highlighted AQL example in an Obsidian code block:

AQL syntax highlighting preview

Usage

Use fenced code blocks with the language tag aql:

```aql
cat="PP" & cat="NP" & #1 > #2
```

Another example:

```aql
tok="learning" & pos="NN" & #1 . #2
```

Update

Community plugins

  • Use Settings -> Community plugins -> Check for updates.

Manual install

  • Replace manifest.json, main.js, and styles.css with files from the latest GitHub release (v1.0.0 for now).
  • Reload Obsidian (or disable and re-enable the plugin).

Development

Requirements:

  • Node.js 16+
  • npm

Install and build:

npm ci
npm run build

Watch mode during development:

npm run dev

Visual validation screenshots (before/after):

npm run test:visual

If Playwright is missing, install it once:

npm install --save-dev playwright

Artifacts are written to:

  • tests/artifacts/validation-before.png
  • tests/artifacts/validation-after.png

Optional Customization

If you want to override the default colors:

  1. Create a file in your vault at .obsidian/snippets/aql-highlighting-custom.css.
  2. Paste your CSS overrides (example below).
  3. In Obsidian, go to Settings -> Appearance -> CSS snippets.
  4. Enable aql-highlighting-custom.
  5. Reload Obsidian if changes do not appear immediately.

Example snippet:

/* AQL token overrides */
.cm-s-obsidian .cm-string {
   color: #2aa198;
   font-style: italic;
}

.cm-s-obsidian .cm-operator {
   color: #dc322f;
   font-weight: 700;
}

.cm-s-obsidian .cm-node_1 {
   color: #268bd2;
   font-weight: 700;
}

Release Checklist

  1. Update manifest.json version.
  2. Update versions.json with the new version to minAppVersion mapping.
  3. Build with npm run build.
  4. Create a GitHub release tagged with the same version as manifest.json.
  5. Upload release assets:
    • manifest.json
    • main.js
    • styles.css

License

MIT. See LICENSE.

HealthExcellent
ReviewSatisfactory
About
Highlight ANNIS Query Language (AQL) in Obsidian fenced code blocks. Register a CodeMirror AQL mode and provide token highlighting for strings, operators, metadata, node references, and node classes, with an optional CSS snippet for ANNIS-style node colors.
SyntaxCode
Details
Current version
1.0.0
Last updated
Last month
Created
Last month
Updates
1 release
Downloads
78
Compatible with
Obsidian 0.12.0+
Platforms
Desktop only
License
MIT
Report bugRequest featureReport plugin
Author
Poorvi AcharyaPoorvi Acharyap-acharya
GitHubp-acharya
  1. Community
  2. Plugins
  3. Syntax
  4. AQL Syntax Highlighting

Related plugins

VSCode Editor

Edit Code Files like VSCode.

Shiki Highlighter

Highlight code blocks with Shiki.

Argument Map with Argdown

Write Argdown code blocks and view the maps in reading mode.

Code Editor

Edit non-markdown text files (code, config, data) directly with syntax highlighting, line numbers, and word wrap.

Strudel REPL

Live-coding music environment — Strudel REPL integrated into your vault.

Ace Code Editor

An enhanced code editor using Ace editor, providing syntax highlighting, code folding, and other advanced editing features.

Code Suite

Execute code inside your notes: Shiki syntax highlighting with 65+ themes, live streaming output, inline Matplotlib and Plotly graphs, shared variables, and styled HTML and PDF export with outputs.

CodeBlock Language Detector

Automatically detects and adds language tags to code blocks without specified language for proper syntax highlighting.

Masking as MD

Open non-markdown files (.py, .html, .txt, .js, .css, etc.) as editable text documents directly in Obsidian.

Mermaid Tools

Improved Mermaid.js experience: visual toolbar with common elements and more.