Discussion
Loading...

Post

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Federation Bot
@Federation_Bot  ·  activity timestamp 3 weeks ago

After so many years with #Emacs #orgmode I just accidently realized that I can specify programming language and have nice syntax highlighting in examples too... not only in source blocks.

I have `#+begin_src sh :noeval` at so many places... 🥹

Snippet from org-mode document showing that examples can do syntax higlighting too. Full snippet is:

**** Všechny akce řešit idempotentně
- použití upsert místo insert/update
- delete psát idempotentně, tzn. pokud záznam chybí, je to =:ok=

Pokud některý zdroj nepotřebuje handle pro database či ansible, dá se použít
=:skip= se kterým již v kódu počítáme ve stylu:

#+begin_example elixir
@impl true
def handle_database(:delete, _data) do
  :skip
end
#+end_example
Snippet from org-mode document showing that examples can do syntax higlighting too. Full snippet is: **** Všechny akce řešit idempotentně - použití upsert místo insert/update - delete psát idempotentně, tzn. pokud záznam chybí, je to =:ok= Pokud některý zdroj nepotřebuje handle pro database či ansible, dá se použít =:skip= se kterým již v kódu počítáme ve stylu: #+begin_example elixir @impl true def handle_database(:delete, _data) do :skip end #+end_example
Snippet from org-mode document showing that examples can do syntax higlighting too. Full snippet is: **** Všechny akce řešit idempotentně - použití upsert místo insert/update - delete psát idempotentně, tzn. pokud záznam chybí, je to =:ok= Pokud některý zdroj nepotřebuje handle pro database či ansible, dá se použít =:skip= se kterým již v kódu počítáme ve stylu: #+begin_example elixir @impl true def handle_database(:delete, _data) do :skip end #+end_example
  • Copy link
  • Flag this post
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.1-alpha.8 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login