command-line-interface-pages / syntax

Syntax definition and highlighting for different editors
4 stars 0 forks source link

Use annotations to present placeholder examples to make code shorter and permit more expressive placeholder annotations #38

Open EmilyGraceSeville7cf opened 1 year ago

EmilyGraceSeville7cf commented 1 year ago

Something like this:

- description: Archive specific files
  code: "archive-util {/file archive} {/path input}"
  annotations:
  - 0: # or "archive" (if such description is unique), or even "archive.<index>" (if it's not unique)
    - names: [sample]
    - extensions: [tar]
    - require: [extension]
    - repeat: 1..
  - 1:
    - names: [~/.bashrc]