GithubHelp home page GithubHelp logo

frypf / vscode-txt-syntax Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xshrim/vscode-txt-syntax

0.0 0.0 0.0 222 KB

Txt Syntax vscode extension is aimed to highlight several text files.

License: MIT License

JavaScript 99.88% Makefile 0.12%

vscode-txt-syntax's Introduction

TXT Syntax

Features

  • Highlight syntax for several text files with dynamic enable/disable languages.
  • Open the file under the current cursor through the right-click menu "Open File".
  • Search selected word using custom search engine in the embeded simple browser.
  • Simple folding and outline function.
  • Add codelens for Makefile to make running makefile target easily.
  • Highlight current line.
  • Highlight multiple selected words in all active editors.
  • Filter and focus on lines based on custom regular expressions

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

filter lines feature is forked from XinyaYang0506/log-analysis

Supported file types

default

The following type types are supported by default:

.txt
.text
.cf
.cnf
.conf
.cfg
.unx
.eds
.log
.ini
.out
.err
.inf
.info
.tmp
.temp
.file
.repo
.plain
.desktop
.properties

custom

you can enable/disable every file type(except txt/text type) by any of the following method:

// with txtsyntax configuration
"txtsyntax.associations": [
  ".tmp",
  ".cnf",
  ".log",
  ".eds",
  ".aaa"
],
// or with vscode configuration
"files.associations": {
  "*.tmp": "txt",
  "*.cnf": "txt",
  "*.log": "txt",
  "*.eds": "txt",
  "*.aaa": "txt"
},

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.

vscode-txt-syntax's People

Contributors

xshrim avatar erynmanela avatar frypf avatar

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.