micro icon indicating copy to clipboard operation
micro copied to clipboard

Language selection at runtime?

Open dharapvj opened this issue 3 years ago • 1 comments

Description of the problem or steps to reproduce

I get yaml output from a command.. I would like to view it in micro.

helm show values argo/argo-cd | micro

But Micro does not recognize it as yaml and hence no syntax highlighting is provided.

In many modern editors (like notepad++ / vscode), we are allowed to set language for the open buffer and thereby get help of syntax highlighting.

Is this possible in Micro?

By they way.. recently discovered this and really liking the editor. Great work.

Specifications

Commit hash: b9763856 OS: Ubuntu Terminal: Windows Terminal (WSL)

dharapvj avatar Apr 19 '22 06:04 dharapvj

You can set the filetype option: helm show values argo/argo-cd | micro -filetype yaml.

zyedidia avatar Apr 20 '22 06:04 zyedidia