Giter Site home page Giter Site logo

vscode-txt-syntax's Introduction

TXT Syntax

Features

  • Highlight syntax for several text files.

  • Open the file under the current cursor through the right-click menu "Open File".

  • Simple folding function.

  • Add codelens for Makefile to make running makefile target easily.

  • Highlight current line.

  • Highlight multiple selected words in all active editors.

folding function need you set "editor.foldingStrategy": "auto".

highlight line feature is forked from cliffordfajardo/highlight-line-vscode

highlight words feature is forked from rsbondi/highlight-words

Supported file types

.txt
.text
.cf
.cnf
.cfg
.conf
.log
.ini
.out
.tmp
.temp
.file
.repo
.plain
.properties

Folding function

Text between sections, braces or hypertext markups could be folded.

Section headers like these:

-*-
* xxx
[xxx]
Part I.
Section A
Page 1
A. 
1. 
一 xx
甲、xxx
第一章 xxx
第2回 xxx
第 3 节 xxx
...

You could set "files.defaultLanguage": "txt" or "files.associations": {"Untitled-*": "txt"} in settings.json to let vscode treat all Untitled files as txt files and then txt syntax will be enabled for these files automatically. In additon, you could also install Modelines extension to set a file to a special format.

note: It will override the default highlight schemes supported by visual studio code if you active this extension.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.