Variables inside codeblock

Im looking for a way to dynamically place some text inside a codeblock. I use obsidian to store shell commands and would like to replace the IP adress in these commands at once. I’ve tried Dataview, but code block inline queries only work in read mode, while i would like a solution that works in preview mode as well. Could someone help me :).

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.