Comments (3)
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.
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.
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)
- Goto Symbol Support
- Windows Script File (WSF) Support
- Syntax highlighting not working on comments on the end of a line of code.
- Documentation to be updated for Sublime Text 3
- Syntax Highlighting Broken When An Array Is A Parameter In Sub Decleration
- I need to update this code for run in windows 7 HOT 4
- Can it be an open source project? HOT 1
- s
- Sublime works with brackets inside strings but mustn't HOT 1
- Numbers that begin with 7 are not considered constant.numeric.asp HOT 1
- typo in VBScript.tmLanguage HOT 1
- Wrong definition for line comments HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vbscript.