Giter Club home page Giter Club logo

Comments (3)

jsadeli avatar jsadeli commented on August 10, 2024

Hey enkore, do you have an example of this? I can probably take a look and see what I can do - no promises! :)

In regards to the tmLanguage, I found this or this to be pretty helpful.

from vbscript.

enkore avatar enkore commented on August 10, 2024

Those files often have the extensions .hta (HTml Application), but it's also possible in normal HTML files.
That basically looks like this:

<html>

<head>
<title>some crappy app</title>

<HTA:APPLICATION
  APPLICATIONNAME="BullShitOMeter"
  ID="objBullShitOMeter"
  SINGLEINSTANCE="yes"
  WINDOWSTATE="maximize"/>
<link rel="stylesheet" type="text/css" href="style.css">
</head>

<script language="VBScript">

Option Explicit

' global definitions

Const HKEY_LOCAL_MACHINE = &H80000002
Const HKEY_CURRENT_USER  = &H80000001
const REG_SZ = 1
const REG_EXPAND_SZ = 2
const REG_BINARY = 3
const REG_DWORD = 4
const REG_MULTI_SZ = 7

Dim dlg
dim okB ' as integer
dim ynB ' as integer

Sub StartBSOM
    ' ...'
end sub

</script>
<body>
<!-- normal HTML -->
<div id="container">

</div>
>
<table width = "100%" >
    <tr>
        ...
    </tr>
</table>

</body>
</html>

So it is like the JavaScript-script-tag, except that it contains VBScript...
Currently Sublime Text 2 treats everything inside a script-tag like JavaScript, so the syntax highlighting is pretty much botched up (comments are highlighted like strings and stuff like that)

from vbscript.

jsadeli avatar jsadeli commented on August 10, 2024

At first glance, looks like there would need to be at least a patch to the built in HTML.tmLanguage file to support other languages beside JavaScript. Another possibility would be to have a new syntax language, something like HTML (VBScript).

Also, sadly, my tmLanguage reading and editing mojo isn't high enough yet - would need to level up first.

from vbscript.

Related Issues (13)

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.