Advanced Codeblock

by Lijyze
5
4
3
2
1
Score: 35/100

Description

Category: Coding & Technical Tools

The Advanced Codeblock plugin enhances the functionality of code blocks in Obsidian notes by introducing options to display line numbers and highlight specific lines. Users can customize the appearance of individual code blocks by specifying parameters, allowing for greater clarity and visual differentiation within their notes. This plugin is particularly useful for those working with technical or code-heavy notes, as it makes code easier to read and understand.

Reviews

No reviews yet.

Stats

63
stars
18,800
downloads
2
forks
1,617
days
1,196
days
1,196
days
1
total PRs
1
open PRs
0
closed PRs
0
merged PRs
13
total issues
3
open issues
10
closed issues
0
commits

Latest Version

3 years ago

Changelog

Bug fixed:

  1. highlight lines align incorrectly without line number.

README file from

Github

Obsidian Advanced Codeblock

Add additioinal features to code blocks.

Demo

demo

Feature

  1. Add line numbers to code block
  2. Add line highlight to code block

Usage

All features won't apply universally, if you need any feature, you need to correctly specify params to specific code block. Params should be split by ' '.

Feature param description
show line numbers nums
highlight line {a, b-c} brackets matter

Notice

  • Code block won't update in preview mode if you only change params of blocks.

    Obsidian cache every section of artical, but it directly ignore anything follows the first space after ```language. Which means if you only change params of a code block, obsidian will think nothing has been changed, so it won't call any post processor in preview view render process.

Manually installing the plugin

  • Copy over main.js, styles.css, manifest.json to your vault VaultFolder/.obsidian/plugins/obsidian-advanced-codeblock/.

Releases

1.1.0

  1. Funcitonalities are available in live-preview mode!

Donating

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
PDF++
5 months ago by ryotaushio
PDF++: the most Obsidian-native PDF annotation & viewing tool ever. Comes with optional Vim keybindings.
Code Styler
3 years ago by Mayuran Visakan
A plugin for Obsidian.md for styling codeblocks and inline code
Kindle Highlights
4 years ago by Hady Osman
Sync your Kindle notes and highlights directly into your Obsidian vault
Relative Line Numbers
6 years ago by Nadav Spiegelman
PDF Highlights
6 years ago by Alexis Rondeau
Extract highlights, underlines and annotations from your PDFs into Obsidian
Obsidian Columns
5 years ago by Trevor Nichols
Numerals
4 years ago by RyanC
An obsidian plugin which turns a math code block into a full featured calculator
Codeblock Customizer
4 years ago by mugiwara
Codeblock Customizer plugin for Obsidian
HiNote
2 years ago by Kai
Add comments to highlighted notes, use AI for thinking, and flashcards for memory.
Sidebar Highlights
a year ago by trevware
ABC Music Notation
6 years ago by Til Blechschmidt
Plugin which renders music notations from code blocks
Raindrop Highlights
4 years ago by kaiiiz
An Obsidian.md plugin that syncs highlights from Raindrop.
Book Reader
2 months ago by EltonLabs
Read EPUB, FB2 and PDF books directly inside Obsidian — a beautiful, distraction-free book reader with text highlighting, notes, and reading progress that syncs into your vault. Works on both desktop and mobile (Windows, macOS, Linux, Android, iOS).
Extract Highlights
6 years ago by Alexis Rondeau
Manage your highlights in Obsidian by easily creating, removing and exporting them.
ProgressBar
4 years ago by Wei Zhang
Code block plugin for Obsidian generating a progress bar
Enhanced Annotations
3 years ago by ycnmhd
Cloze
3 years ago by Vikki
A plugin for Obsidian which enables converting highlights, underlines, bolded texts, or any selected texts into clozes.
Embedded Code Title
5 years ago by tadashi-aikawa
It is an Obsidian plugin which can embeds title to code blocks.
Apple Books - Import Highlights
3 years ago by bandantonio
⚡️Fastest Apple Books highlights importer to Obsidian 🗄️ The only one protecting your own reflections across imports 🎨 Fully customizable
Kobo Highlights Importer
5 years ago by Flavio Cordari
Obsidian plugin to import highlights from a Kobo e-reader into your vault (no longer actively maintained)
aDHL
a year ago by tine-schreibt
The Dynamic Highlights Plugin, but with hotkeys, more options and sorting; works well with Highlightr.
Readwise Community
6 years ago by renehernandez
Sync Readwise highlights into your obsidian vault
Focus and Highlight
4 years ago by BO YI TSAI
A plugin for obsidian to focus and highlight on a specific heading in Reading mode.
HK Code Block
4 years ago by Heekang Park
Obsidian plugin developed by Heekang Park; Make code block looking good on reading view
MLIR Syntax Highlight
3 years ago by Lewuathe
Collapsible Code Blocks
2 years ago by Bradley Wyatt
Obsidian Plugin that makes code blocks collapsible in reading and edit view as well as enabling scroll-able code blocks.
Vim Yank Highlight
3 years ago by Aleksey Rowan
Highlight yanked text in Vim mode. Enjoy that subtle animation you've missed so much.
Vocabulary Highlighter
3 years ago by eatgrass
Highlight English words according to the frequency with Obsidian
CodeBlock Tabs
3 years ago by Jemin Mau
Create tab group for contiguous codeblocks.
WuCai highlights Official
4 years ago by 希果壳五彩
WuCai highlights Official, for Sync highlights into your obsidian notes
Highlight Public Notes
6 years ago by dennis seidel
Apple Books Highlights
4 years ago by Atif Afzal
Sync your Apple Books highlights in Obsidian
Simple Mention
4 years ago by der-tobi
Obsidian plugin for mentioning people
Todo.txt Codeblocks
3 years ago by Benjamin Nguyen
Manage your tasks inside Obsidian codeblocks according to the Todo.txt specification.
Minitabs
3 years ago by ssjy1919
Obsidian tabs
Floating Highlights
4 years ago by Karthik S Raju
This is a plugin for obsidian which highlights a block of text or a word as you scroll down while reading.
KoReader Highlight Importer
2 years ago by Tahsin Kocaman
Imports highlights and metadata from KoReader into Obsidian notes
CSV Codeblock
3 years ago by elrindir
Plugin for obsidian to render csv syntax in codeblocks.
Pocketbook Cloud Highlight Importer
4 years ago by Lena Brüder
Imports highlights and notes from books stored in the pocketbook cloud to your obsidian vault
Kindle Highlights Import
a year ago by Leon Luttenberger
Plugin for Obsidian that allows users to import Kindle highlights into their Obsidian vault.
Codeblock Template
3 years ago by Super10
A template plugin that allows for the reuse of content within Code Blocks!一个可以把Code Block的内容重复利用模板插件!
HamsterBase Official
3 years ago by HamsterBase
Readavocado Sync
4 years ago by Cyrus Zhang
Readavocado obsidian plugin to sync your favorite highlights.
Highlight Helper
3 years ago by Chongmyung Park
Helper to collect highlight in Obsidian
YAML Table
a year ago by dainakai
PDF++ Exporter
3 months ago by jldiaz
Command Line
2 years ago by Steven Stallion
Copy command lines from your notes to the clipboard.
List Callouts Improved
2 months ago by Daniel Yim
Create callouts in lists in Obsidian.
Pick Me
a month ago by seanishoo
Annotate and ask questions about what you select — in notes and in PDFs — without leaving the page. Annotations live in their own Markdown files; the original document is never modified.
Multiplatform Highlights Importer
2 years ago by wwwkieran
Import and consolidate highlights from different reading sources. Supports reconciling books across reading sources.
Replace Pencil
a year ago by penyt
🐧 An Obsidian plugin that can easily replace the custom variable in the code block.
Code Blocks commands
a year ago by dragonish
Provide commands to insert code blocks with markup, and support triggering commands with backticks.
ICOR for Life - PDF Annotation
2 months ago by Thomas Roedl
Highlight text or draw a box on a PDF and get a note in the vault for it, with a deep link back, a card on any canvas by drag and drop, and a sidebar of every highlight in the open PDF. Part of the ICOR for Life suite.
MatchSyntax
a year ago by Eda
An Obsidian plugin that lets you write "regex-like" syntax to search the contents of a note, including part-of-speech tagging and (limited) fuzzy matching.
TODO Highlighter
a year ago by Nuraly Dyussenov
Obsidian Plugin that formats the exact string TODO, so it can be easily seen in your notes.
InfoFlow
2 years ago by RockieStar Inc.
Obsidian plugin for InfoFlow.app - This plugin integrates InfoFlow with Obsidian, allowing you to sync your saved articles, web pages, notes, and highlights directly into your Obsidian vault.
D2 Standalone
6 days ago by m-haruki
Render D2 diagrams in Obsidian without installing D2 — fully standalone, cross-platform. Unofficial, not affiliated with Terrastruct.
Second Reader
10 days ago by Kevin Miller
extension for Obsidian to create permanent notes from literature notes