Skip to content

live reload syntaxes #1270

@andromeda-fp

Description

@andromeda-fp

behaviour: when using cobalt serve, any added syntaxes don't get loaded until the server is restarted.

expected behavior: an added syntax is immediately reflected in the live server

steps to reproduce:

cobalt init
vim index.md
# add a syntax highlighted block like: 
# ```nix 
# {}: { inputs = { nixpkgs.url = ""; }; }
# ```
cobalt serve
mkdir _syntax
# download [Nix.sublime-syntax](https://github.com/satya-nutella/zola/blob/3bedb42b0b8ef06967eecaa63b8faa82dbe9cd00/sublime/syntaxes/extra/Nix.sublime-syntax#L4)
# and place it into _syntax
# notice at localhost:1024 that the syntax highlighting is not applied
# after `^c` `cobalt serve` the syntax is applied

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions