Skip to content

Commit 6c6b60a

Browse files
committed
init. checkin
1 parent 67d3c5c commit 6c6b60a

17 files changed

Lines changed: 3866 additions & 0 deletions

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.DS_Store
2+
node_modules/

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Change Log
2+
3+
All notable changes to the "jxml-support" extension will be documented in this file.
4+
5+
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
6+
7+
## [Unreleased]
8+
9+
- Initial release

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# JXML Support VS Code Extension
2+
JXML is Virtuosoft's powerful, unabridged, uninhibited, server-side implementation of inline NodeJS within XHTML. Not unlike the quick prototyping and no-compile abilities of PHP; but for NodeJS. This Visual Studio Code plugin allows code folding the the <? and ?> tags along with simplified syntax highlighting support for JavaScript within those tags (on files with the .jxml extension).
3+
4+
This extension provides:
5+
- Code folding for `<? ... ?>` and `<?jxml ... ?>` tags in `.jxml` files.
6+
- NodeJS/JavaScript syntax highlighting and code hinting within those tags.
7+
- HTML highlighting outside those tags.
8+
9+
## Features
10+
- Folding regions for server-side/script blocks in JXML.
11+
- Embedded JavaScript support inside `<? ... ?>` and `<?jxml ... ?>`.
12+
- HTML support for the rest of the file.
13+
14+
## Usage
15+
1. Open a `.jxml` file in VS Code.
16+
2. Use the folding arrows to collapse/expand `<? ... ?>` and `<?jxml ... ?>` blocks.
17+
3. Enjoy JavaScript/NodeJS code completion and highlighting inside those tags.
18+
19+
## Development
20+
- Run `npm run compile` to build the extension.
21+
- Press `F5` in VS Code to launch an Extension Development Host for testing.
22+
23+
## License
24+
MIT

eslint.config.mjs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import typescriptEslint from "@typescript-eslint/eslint-plugin";
2+
import tsParser from "@typescript-eslint/parser";
3+
4+
export default [{
5+
files: ["**/*.ts"],
6+
}, {
7+
plugins: {
8+
"@typescript-eslint": typescriptEslint,
9+
},
10+
11+
languageOptions: {
12+
parser: tsParser,
13+
ecmaVersion: 2022,
14+
sourceType: "module",
15+
},
16+
17+
rules: {
18+
"@typescript-eslint/naming-convention": ["warn", {
19+
selector: "import",
20+
format: ["camelCase", "PascalCase"],
21+
}],
22+
23+
curly: "warn",
24+
eqeqeq: "warn",
25+
"no-throw-literal": "warn",
26+
semi: "warn",
27+
},
28+
}];

jxml-support-0.0.1.vsix

23.2 KB
Binary file not shown.

language-configuration.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"comments": {
3+
"blockComment": ["<!--", "-->"]
4+
},
5+
"brackets": [
6+
["<", ">"],
7+
["<?", "?>"]
8+
],
9+
"autoClosingPairs": [
10+
{ "open": "<?", "close": "?>" },
11+
{ "open": "<", "close": ">" },
12+
{ "open": "'", "close": "'" },
13+
{ "open": "\"", "close": "\"" },
14+
{ "open": "[", "close": "]" },
15+
{ "open": "(", "close": ")" },
16+
{ "open": "{", "close": "}" }
17+
],
18+
"surroundingPairs": [
19+
{ "open": "<?", "close": "?>" },
20+
{ "open": "<", "close": ">" },
21+
{ "open": "'", "close": "'" },
22+
{ "open": "\"", "close": "\"" },
23+
{ "open": "[", "close": "]" },
24+
{ "open": "(", "close": ")" },
25+
{ "open": "{", "close": "}" }
26+
],
27+
"folding": {
28+
"markers": {
29+
"start": "<\\?j?xml?",
30+
"end": "\\?>"
31+
}
32+
}
33+
}

out/extension.js

Lines changed: 104 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

out/extension.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

out/test/extension.test.js

Lines changed: 48 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

out/test/extension.test.js.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)