I have seen a couple of methods of formatting code in google docs (e.g. here and here), and they both involve addons which then require you to go through menus (GUIs).

Is there a way of changing settings in the google doc so that it interprets ``` as the start of a code block and highlights appropriately? (e.g. in a similar fashion to how slack would)