sublimetext / vbscript Goto Github PK
View Code? Open in Web Editor NEWVBScript package for Sublime Text
Home Page: https://github.com/SublimeText/VBScript
VBScript package for Sublime Text
Home Page: https://github.com/SublimeText/VBScript
The directory to install the package (whatever method) is :
C:\Users\[name of the user]\AppData\Roaming\Sublime Text 3\Packages
Yeah I know embedding VBScript in HTML is evil, but I often need to work with such stuff :(
However, even with VBScript installed Sublime Text 2 thinks that stuff inside <script>-Tags with language="VBScript" is JavaScript... well as I don't really know how to edit tmLanguage files it would be very nice to have this...
If someone got a tutorial how stuff like this (syntax highlighting for other languages) in a tmLanguage file is done, I'd do this my self and make a pull a request...
I guess that must be added to the HTML package, doesn't it? Well I dunno .. :D
Set objWMIService = GetObject("winmgmts:.\root\cimv2") Set colNetAdapters = objWMIService.ExecQuery("Select * from Win32_NetworkAdapterConfiguration where IPEnabled=TRUE")
strSubnetMask = Array("255.255.255.0") strGateway = Array("192.168.0.3") strGatewayMetric = Array(1) strDNS = Array("192.168.0.3")
For Each objNetAdapter in colNetAdapters errEnable = objNetAdapter.EnableStatic(strIPAddress, strSubnetMask) errGateways = objNetAdapter.SetGateways(strGateway, strGatewaymetric)
objNetAdapter.SetDNSServerSearchOrder strDNS
Next
Line 126 in VBScript.tmLanguage should be
('|Rem)
instead of
('|REM)
at least according to Microsoft Excel 2010's VB Editor, which replaces REM with Rem.
foo = 744
bar = 234
The 744 number will be highlighted in white and called "variable.other.asp".
The 234 number will be highlighted correctly and called "constant.numeric.asp".
Seems like any number that starts with 7 is considered "variable.other.asp" instead of "constant.numeric.asp".
When a comment is at the end of code, it is not greyed out.
This is fine.
' Same as WScript.echo myEcho
sub wEcho( myEcho )
WScript.echo myEcho
End Sub
This will not work. The VB.net parser here shows it is valid code.
sub wEcho( myEcho ) ' Same as WScript.echo myEcho
WScript.echo myEcho
End Sub
Better support for WSF files would be ideal. At a minimum, treating characters between <resource>
tags as plain text would be a start.
Line 216 in VBScript.tmLanguage should contain BinaryRead instead of BianryRead, I guess.
Searching through the repository I cannot find any mention to open source licence. By this project being on Github, I am allowed to fork it by the Github TOS (Terms Of Service). However I am not allowed to create derivative works from it (pull requests). Meaning I cannot fork this repository, change its code and perform pull requests without the danger/liability of being prosecuted by violating the All rights reserved
copyright granted by berne convention law.
Related issues:
I couldn't find an option for running vbs files with this addon. Can somebody help me with that?
In the code below:
call Report("test (msg)")
Exit Function
third bracket closes my function.
So, syntax will be highlighted like call function
Report("test (msg)
and
")
Exit Function
will be like enclosed string.
One more thing: strings inside brackets don't marked as strings
' drop this code into sublime using VBScript it should become apparent
Sub Name1(ByRef arrNameHere() As String, strNameHere1 As String)
' code 1 here
End Sub
Sub Name2(ByRef intNameHere As Integer, strNameHere2 As String)
' code 2 here
End Sub
Add support for Sublime Text's Goto Symbol
feature. Also, VBScript's symbol list (or tmLanguage) probably needs some cleanup.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.