Skip to content

Add support for MacOS crontab syntax highlighting #3172

@nv-pipo

Description

@nv-pipo

Description of the problem or steps to reproduce

The default configuration doesn't highlight crontab on MacOS, when running 'crontab -e'

Specifications

Version: 2.0.13
Commit hash: 68d88b5
Compiled on October 21, 2023

OS: MacOS 14.3.1
Terminal: alacritty

Solution

Create a file '~/.config/micro/syntax/crontab.yaml', and add detection for MacOS file path:

filetype: crontab

detect:
  filename: "(crontab$|[/]tmp[/]crontab[.])"
...

After that, micro is able to detect crontab on MacOS:
image

Request

For others, could you please update the default runtime/syntax/crontab.yaml file to add support for MacOS crontab paths?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions