💾 Archived View for bleyble.com › users › quokka › glogs › 2020 › 20200510.gmi captured on 2020-11-07 at 00:35:09. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2020-09-24)

-=-=-=-=-=-=-

A Gemini syntax file for the Micro editor

2020 05 10

I have started using the Micro editor:

Micro text editor

and have created a syntax file for the gemini protocol.

Put this into ~/.config/micro/syntax/gemini.yaml and you should be good to go!

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

filetype: gemini

detect:
  filename: "\\.(gmi|gemini)$"

rules:

  # Heading levels
  - special: "^#.*"
  - special: "^##.*"
  - special: "^###.*"

  # Link label
  - type: "^=>\\s*\\S+\\s+.*"
  # recolor link URL
  - constant: "^=>\\s*\\S+"
  # recolor the link prefix
  - special: "^=>"

  # Unordered lists
  - identifier: "^\\*.*"

  # Preformatted blocks
  - preproc:
      start: "^```$"
      end: "^```$"
      rules:
        - preproc: ""

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

⬑ Back to the glog index

ↂ Quokka's Capsule

↯ bleyble.com

~EOF~