Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Larpon/kate-syntax-highlight-v

Syntax highlighting of V files for the Kate editor
https://github.com/Larpon/kate-syntax-highlight-v

kate kate-editor syntax-highlighting v vlang

Last synced: about 1 month ago
JSON representation

Syntax highlighting of V files for the Kate editor

Awesome Lists containing this project

README

        

# V syntax highlighting for Kate

Syntax highlighting for the [V](https://vlang.io/) language.

## Install

### NOTE
The xml contents of this repository is now upstreamed to [KDE/syntax-highlighting](https://github.com/KDE/syntax-highlighting/blob/master/data/syntax/v.xml).
That means newer versions of KDE will ship with V syntax support.

### Linux/Unix
Add `v.xml` symlink (or copy file) to:
`$HOME/.local/share/katepart5/syntax`

### Windows
Copy to `%USERPROFILE%/AppData/Local/org.kde.syntax-highlighting/syntax`. (`%USERPROFILE%` usually expands to `C:\\Users\\user`)

More info on katepart [here](https://docs.kde.org/stable5/en/applications/katepart/highlight.html)

## Usage
Unfortunately files ending in `*.v` is also used by the Verilog language. To make V source files take precedence over Verilog you can go to:
Settings -> Editor Component -> Open / Save -> Modes & Filetypes -> Filetype: "Sources/V -> Priority: 1

For setting a higher priority than Verilog.

![image](https://user-images.githubusercontent.com/768942/68543032-6a421880-03b2-11ea-80cd-8284fa0f030b.png)