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

1C (BSL) Language Support

Sanal TserenovSanal Tserenov78 downloads

1C (BSL) Language Support for Markdown files in Obsidian

Add to Obsidian
  • Overview
  • Scorecard
  • Updates7

[!WARNING] This plugin was created with the help of AI and has not been thoroughly reviewed or tested. It is still a work in progress and may contain bugs. Use it at your own risk, and please report any issues you find.

Syntax highlighting for the 1C:Enterprise built-in language (BSL) in Obsidian code blocks — both in reading mode and in the editor.

Supported tags

1c in any letter case, Cyrillic or Latin. The bsl and os (OneScript) tags are also supported.

Features

  • keywords in Russian and English (Если/If, КонецЕсли/EndIf, Асинх/Async, Ждать/Await, etc.);
  • global context methods (Сообщить, СтрДлина, Окр, ТекущаяДата, ЗначениеЗаполнено…) and platform types (Массив, Структура, Запрос…);
  • Истина, Ложь, Неопределено, Null literals;
  • strings, including multiline ones with | continuation and "" escaping;
  • date literals '20240101', numbers, // and /* … */ comments;
  • preprocessor directives (#Если Сервер Тогда, #Область) and annotations (&НаСервере, &Перед("Имя"));
  • procedure and function names are highlighted at declaration, along with their parameters;
  • operators (=, +, *, comparisons, И/Или/Не…) and punctuation;
  • the token model matches the reference 1c-syntax grammar, in both reading and editing modes.

Installation

From the community plugin directory

Open Settings → Community plugins → Browse, search for "1C", then install and enable 1C (BSL) Language Support.

Manual installation

  1. Download main.js and manifest.json from the latest GitHub release.
  2. Place both files into a folder named onec-syntax-highlight inside your vault: <vault>/.obsidian/plugins/onec-syntax-highlight/
  3. In Obsidian, open Settings → Community plugins:
    • if Restricted Mode is enabled — turn it off;
    • enable 1C (BSL) Language Support in the list.
  4. If the plugin does not appear in the list — restart Obsidian.
  5. Notes that were open before enabling the plugin may not highlight immediately — reopen them.

Quick check

Paste into a note:

```1c
Процедура Приветствие(Имя = "Мир") Экспорт
    Если Не ЗначениеЗаполнено(Имя) Тогда
        Имя = "мир";
    КонецЕсли;
    Сообщить(СтрШаблон("Привет, %1!", Имя)); // комментарий
КонецПроцедуры
```

Building from source

Requires Node.js 18+:

npm install
npm run build

main.js is a build artifact and is not committed to the repository — the build produces it in the project root. Copy it together with manifest.json into <vault>/.obsidian/plugins/onec-syntax-highlight/ (see the steps above).

Credits

The keyword and built-in function lists are based on the 1C language definitions from highlight.js (BSD-3-Clause) and Prism (MIT).

License: MIT.

HealthExcellent
ReviewPassed
About
Highlight 1C:Enterprise (BSL) code blocks in editor and preview, supporting 1c and bsl tags in Cyrillic or Latin. Recognize Russian and English keywords, global methods and platform types, literals (dates, strings, numbers, Null), comments, preprocessor directives, annotations, and procedure/function declarations.
SyntaxCode
Details
Current version
1.0.6
Last updated
Yesterday
Created
2 weeks ago
Updates
7 releases
Downloads
78
Compatible with
Obsidian 1.4.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
Sanal TserenovSanal Tserenovsanal
GitHubsanal
  1. Community
  2. Plugins
  3. Syntax
  4. 1C (BSL) Language Support

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.

Code Viewer

View and edit code files with native syntax highlighting.

Code File Embed

Embed the contents of a vault file as a syntax-highlighted code block via a codefile fenced block.

Masking as MD

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

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.

Strudel REPL

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