Preformatted text


#1

Is there a way for us to post tdl in these comments that preserves the indentation? (I tried poking around a bit and don’t see an easy way to do it, but maybe I’m just not mastering the UI.)

Thanks!
Emily


#2

I think typing three backticks on the previous line helps:

(three backticks are actually hidden right below here: ```)

non-mod-lex-item := lex-item &
  [ SYNSEM.LOCAL.CAT.HEAD.MOD < > ].

#3

Yep. Technically you “fence” off the code block with backticks:

    ```
    code block here
    ```

It supports tagging the code fence with a language to do syntax highlighting; it should also be possible to extend the mechanism to support TDL. That syntax would look like this:

    ```tdl
    tdl-block := tdl & code-or-code-block.
    ```

But I’m not looking at that until February. :slight_smile:


#4

Thanks, Olga and Chris! Everyone posting tdl, please use this :slight_smile: