GithubHelp home page GithubHelp logo

sjbwylbs / vs-freemarker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dcortes92/vs-freemarker

0.0 1.0 0.0 322 KB

FreeMarker language colorization extension for Visual Studio Code

License: MIT License

vs-freemarker's Introduction

FreeMarker for Visual Studio Code

FreeMarker language colorization extension for Visual Studio Code. You can read more about FreeMarker here.

Usage

Install the extension and open any .ftl file.

FreeMarker Syntax Highlight

This is based on the TextMate bundle found on this 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]
    

FreeMarker Snippet Example

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.

vs-freemarker's People

Contributors

cbezmen avatar dcortes92 avatar enjoyma avatar

Watchers

 avatar

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.