💾 Archived View for bleyble.com › users › quokka › glogs › 2020 › 20200510.gmi captured on 2024-07-08 at 23:46:39. 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~