Giter VIP home page Giter VIP logo

vitalyruhl / intouch-language Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 29.42 MB

Intouch-Language is an open source extension created for Visual Studio Code (Not official!). It provides syntax highlighting, snippets and auto-format function for Intouch Basic. New since 2022.11.28 - own darkmode theme for VSC, names Intouch Dark. Intouch is a programming language for AVEVA (Wonderware) SCADA Intouch Applications.

License: GNU General Public License v3.0

TypeScript 63.88% JavaScript 36.12%
intouch invensys wonderware formatter programming-languages vscode intouch-basic vscode-extension aveva scada

intouch-language's Introduction

Intouch-Language README


Intouch-Language Logo

Version Installs Rating



Intouch-Language

  • Intouch-Language is an open source extension created for Visual Studio Code (Not official!). It provides syntax highlighting, snippets and auto-format function for Intouch Basic. New since 2022.11.28 - own darkmode theme for VSC, names Intouch Dark.
  • Intouch is a programming language for AVEVA (Wonderware) SCADA Intouch Applications.


Intouch



Example

Example


New Theme

NOTE: The default VS Code theme does not color much. Switch to intouch theme (installed by this extension) or use a theme like one of the following to benefit from the changes:



Example diffrent themes

Intouch Theme Dark

Intouch Theme Dark

VSC Theme Dark+

VSC Theme Dark+

Material Theme Darker

Material Theme Darker

VSC Theme Light

VSC Theme Light


Test and example

You can test it on this %USERPROFILE%\.vscode\extensions\intouch-language\other\test\test.vbi by press shift + alt + F



Installation

  • Standatd Installation:
  • Install from Github:
    • Copy or clone all in to: %USERPROFILE%\.vscode\extensions\intouch-language\
      • cd ~/.vscode/extensions/
      • git clone https://github.com/vitalyruhl/intouch-language.git
    • Open shell there and type npm i
    • Run: npm run compile, or npm run watch if you want to make changes in src folder.
    • You must restart the VS-Code after installation, to apply new settings



Snippets

  • Dimb -> Dim Boolean (Discrete)
  • Dimi -> Dim Integer
  • Dims -> Dim String (Message)
  • If# -> If code block
  • Ife -> If Else code block
  • for# -> add for-next-block
  • log# -> Log-Debug
  • cb# -> add new Code-Block
  • func# -> add new empty Function



Others

Save your code as .vbi or .vi for automatic language recognition.


Better-Comment Plugin




Enjoy!

Please report missing rules or future-requests on this link.



Todo

  • Formatter
    • Issues
      • Bug 13.02.2022 For-next not in plan when there are an EXIT FOR statement
      • Bug 13.02.2022 Nesting bug -> code in multiline comment will formatted to?!
    • Futures planned
      • Format on selection (now is formatting document!)

  • Syntax-highlighting
    • No issues
    • Futures planned
      • Add code checker for some errors in code

  • Snippets
    • No issues
    • No futures planned



What's new in Intouch-Language

V1.4.0

  • Correct some bugs in regex for syntax-highlighting
  • Theme -> Add more compatibility to other languages
  • Add more compatibility to other Themes (e.g. material-theme)

V1.3.0

V1.2.4

  • Update dependencies

V1.2.3

  • Bome bugfixes

V1.2.2

  • Bugfix on snippets

V1.2.1

  • Bugfix trailing whitespace before -

V1.2.0

  • Add folding between {region xxxx} and {endregion xxxx}
  • Add Nesting between {region xxxx} and {endregion xxxx}
  • Auto closing brackets in strings and comments.
  • Remove unused dependency with dependabot alert.
  • Add wordPattern and indentationRules into language configuration.
  • <fix bug - issue #13, formatter formats dashed variable foo-bar --> foo - bar

V1.1.1

  • Version issue with format problem on <>, =<, =>, == was published with greater version

V1.1.0

  • Add Code-Blocks for Nesting and Folding in code without keywords Start:{>, End:{<
  • Add Snipped cb# : add new Code-Block
  • Add Snipped for# : add for-next-block
  • Add Snipped func# : add new empty Function
  • Correct some spelling mistakes
  • Remove debugging settings

V1.0.0

  • Add Formatting Function



Donate

if you prefer a one-time donation

donate-Paypal

Become a patron, by simply clicking on this button (**very appreciated!**):

Become a patron




Copyright

2021-2022 (c)Vitaly Ruhl

License: GNU General Public License v3.0

intouch-language's People

Contributors

dependabot[bot] avatar vitalyruhl avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

intouch-language's Issues

"for" snippet description

Hello, Vitaly.
I think that I found little mistyping in the description of for-loop snippet. Now its:

"for": {
"prefix": "for#",
"body": [
"",
"DIM i AS INTEGER;",
"FOR i=0 TO 30 STEP 2",
"\t",
"NEXT;",
""
],
"description": "If ElseIf Else code block"
},

and must be:
"description": "for-next-block"

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.