-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 602d19c
Showing
17 changed files
with
1,815 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
*.vsix | ||
*.vscode-test | ||
node_modules | ||
npm-debug.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// A launch configuration that compiles the extension and then opens it inside a new window | ||
{ | ||
"version": "0.1.0", | ||
"configurations": [ | ||
{ | ||
"name": "Launch Extension", | ||
"type": "extensionHost", | ||
"request": "launch", | ||
"runtimeExecutable": "${execPath}", | ||
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.vscode/** | ||
typings/** | ||
out/test/** | ||
test/** | ||
src/** | ||
**/*.map | ||
.gitignore | ||
tsconfig.json | ||
.vscode-test/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# Change Log | ||
|
||
## [0.0.9](https://github.com/dcortes92/vs-freemarker/tree/0.0.9) (2017-04-11) | ||
[Full Changelog](https://github.com/dcortes92/vs-freemarker/compare/0.0.8...0.0.9) | ||
|
||
**Merged pull requests:** | ||
|
||
- VsCode upgrade prevents to use snippets starting with not alphanumeric characters [\#10](https://github.com/dcortes92/vs-freemarker/pull/10) ([vinlos](https://github.com/vinlos)) | ||
|
||
## [0.0.8](https://github.com/dcortes92/vs-freemarker/tree/0.0.8) (2017-02-03) | ||
[Full Changelog](https://github.com/dcortes92/vs-freemarker/compare/0.0.7...0.0.8) | ||
|
||
**Closed issues:** | ||
|
||
- Fix readme [\#8](https://github.com/dcortes92/vs-freemarker/issues/8) | ||
|
||
## [0.0.7](https://github.com/dcortes92/vs-freemarker/tree/0.0.7) (2017-02-02) | ||
[Full Changelog](https://github.com/dcortes92/vs-freemarker/compare/0.0.6...0.0.7) | ||
|
||
**Merged pull requests:** | ||
|
||
- New snippets and improved readme file [\#7](https://github.com/dcortes92/vs-freemarker/pull/7) ([vinlos](https://github.com/vinlos)) | ||
|
||
## [0.0.6](https://github.com/dcortes92/vs-freemarker/tree/0.0.6) (2017-01-31) | ||
[Full Changelog](https://github.com/dcortes92/vs-freemarker/compare/0.0.5...0.0.6) | ||
|
||
**Closed issues:** | ||
|
||
- Redesign logo [\#6](https://github.com/dcortes92/vs-freemarker/issues/6) | ||
- Add a Changelog [\#4](https://github.com/dcortes92/vs-freemarker/issues/4) | ||
|
||
## [0.0.5](https://github.com/dcortes92/vs-freemarker/tree/0.0.5) (2017-01-30) | ||
**Merged pull requests:** | ||
|
||
- Added new snippets: elseif, include, assign\(short\) [\#3](https://github.com/dcortes92/vs-freemarker/pull/3) ([vinlos](https://github.com/vinlos)) | ||
- amend freemarker comment [\#1](https://github.com/dcortes92/vs-freemarker/pull/1) ([Martin0417](https://github.com/Martin0417)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2015 Daniel Cortes | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# FreeMarker New for Visual Studio Code | ||
FreeMarker language colorization extension for Visual Studio Code. You can read more about FreeMarker [here](http://freemarker.incubator.apache.org/). | ||
|
||
## Usage | ||
[Install](https://marketplace.visualstudio.com/items?itemName=dcortes92.FreeMarker) the extension and open any `.ftl` file. | ||
|
||
 | ||
|
||
This is based on the TextMate bundle found on [this](https://github.com/bburbach/textmate-freemarker-bundle) repo. | ||
|
||
Alternative FreeMarker syntax with square brackets is fully supported. | ||
|
||
### Snippets | ||
Type **#** followed by the first letters of a FreeMarker tag name and the editor will propose you all the available autocomplete options. Snippets are also available for alternative FreeMarker syntax. They will have the same shortcuts of regular ones, with an underscore \_ character at the end. For instance: | ||
* with **#if** shortcut, you will get: | ||
``` | ||
<#if (condition)> | ||
</#if> | ||
``` | ||
* while with **#if\_** shortcut the result will be: | ||
``` | ||
[#if (condition)] | ||
[/#if] | ||
``` | ||
 | ||
#### Snippets list | ||
Shortcut | Description | ||
---------|--------- | ||
dir | Directive | ||
d | Simple Directive | ||
mdef | Macro definition | ||
ma | Macro | ||
m | Simple Macro | ||
a | #assign short | ||
assign | #assign long | ||
l | #local short | ||
local | #local long | ||
g | #global short | ||
global | #global long | ||
set | #setting short | ||
setting | #setting long | ||
if | #if | ||
e | #else | ||
eif | #elseif | ||
li | #list | ||
include | #include | ||
imp | #import | ||
function | #function / #return | ||
sw | #switch / #case / #default | ||
ca | #case | ||
att | #attempt / #recover | ||
## Contributing | ||
Contributions are welcome. Fork the repo and create a pull request with your changes. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head>${pageTitle}</head> | ||
<body> | ||
<div class="container"> | ||
<#assign var=value/> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"comments": { | ||
// symbol used for single line comment. Remove this entry if your language does not support line comments | ||
// "lineComment": "//", | ||
// symbols used for start and end a block comment. Remove this entry if your language does not support block comments | ||
"blockComment": [ "<#-- ", " -->" ] | ||
}, | ||
// symbols used as brackets | ||
"brackets": [ | ||
["{", "}"], | ||
["[", "]"], | ||
["(", ")"] | ||
] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
{ | ||
"name": "FreeMarker2023", | ||
"displayName": "Free Marker 2023", | ||
"description": "Syntax highlight for FreeMarker", | ||
"version": "0.0.10", | ||
"publisher": "affiahmedkhan", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/affiahmedkhan/vs-freemarker-new.git" | ||
}, | ||
"engines": { | ||
"vscode": "^0.10.1" | ||
}, | ||
"categories": [ | ||
"Languages" | ||
], | ||
"contributes": { | ||
"languages": [ | ||
{ | ||
"id": "ftl", | ||
"aliases": [ | ||
"FreeMarker", | ||
"ftl" | ||
], | ||
"extensions": [ | ||
".ftl" | ||
], | ||
"configuration": "./ftl.configuration.json" | ||
}, | ||
{ | ||
"id": "ftl.html", | ||
"aliases": [ | ||
"FreeMarkerHtml", | ||
"ftl.html" | ||
], | ||
"extensions": [ | ||
".ftl.html" | ||
], | ||
"configuration": "./ftl.configuration.json" | ||
} | ||
], | ||
"grammars": [ | ||
{ | ||
"language": "ftl", | ||
"scopeName": "text.html.ftl", | ||
"path": "./syntaxes/ftl.tmLanguage" | ||
}, | ||
{ | ||
"language": "ftl.html", | ||
"scopeName": "text.ftl.html", | ||
"path": "./syntaxes/ftl.tmLanguage" | ||
} | ||
], | ||
"snippets": [ | ||
{ | ||
"language": "ftl", | ||
"path": "./snippets/ftl.json" | ||
}, | ||
{ | ||
"language": "ftl", | ||
"path": "./snippets/html.json" | ||
}, | ||
{ | ||
"language": "ftl.html", | ||
"path": "./snippets/ftl.html.json" | ||
}, | ||
{ | ||
"language": "ftl.html", | ||
"path": "./snippets/html.json" | ||
}, | ||
{ | ||
"language": "html", | ||
"path": "./snippets/ftl.html.json" | ||
} | ||
] | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/dcortes92/vs-freemarker/issues" | ||
}, | ||
"homepage": "https://github.com/dcortes92/vs-freemarker#readme", | ||
"dependencies": {}, | ||
"devDependencies": {}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"keywords": [ | ||
"visual", | ||
"studio", | ||
"code", | ||
"vs", | ||
"freemarker", | ||
"ftl" | ||
], | ||
"author": "Daniel Cortes <[email protected]> (http://dcortes92.github.io/)", | ||
"license": "MIT", | ||
"icon": "images/logo.svg" | ||
} |
Oops, something went wrong.