Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Free Marker 2023New to Visual Studio Code? Get it now.
Free Marker 2023

Free Marker 2023

Aftab Ahmed Khan

|
2,185 installs
| (2) | Free
Syntax highlight for FreeMarker
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Free Marker 2023 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, .ftl.html and .html 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.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft