Giter Club home page Giter Club logo

vbscript's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vbscript's Issues

VBS in HTML (evil)

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

I need to update this code for run in windows 7

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

Wrong definition for line comments

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.

Numbers that begin with 7 are not considered constant.numeric.asp

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".

Syntax highlighting not working on comments on the end of a line of code.

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

Windows Script File (WSF) Support

Better support for WSF files would be ideal. At a minimum, treating characters between <resource> tags as plain text would be a start.

Can it be an open source project?

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:

  1. gamcoh/QuickEdit#2 Can it be an open source project?
  2. SublimeText/LaTeXTools#1175 Can it be an open source project?

Sublime works with brackets inside strings but mustn't

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

Goto Symbol Support

Add support for Sublime Text's Goto Symbol feature. Also, VBScript's symbol list (or tmLanguage) probably needs some cleanup.

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.