GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ssigwart/vscode-smarty: VSCode Smarty Language Server

BranchesTags
Open more actions menu

Latest commit

 

History

40 Commits
40 Commits

Folders and files

NameName
Last commit message
Last commit date
.vscode
.vscode
 
 
client
client
 
 
server
server
 
 
syntaxes
syntaxes
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.vscodeignore
.vscodeignore
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
language-configuration.json
language-configuration.json
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
smarty.code-workspace
smarty.code-workspace
 
 
tsconfig.json
tsconfig.json
 
 
vsc-extension-quickstart.md
vsc-extension-quickstart.md
 
 

Repository files navigation

Smarty Language Server

This extension provides Smarty syntax highlighting and code intelligence. For code intelligence, it uses the default HTML/CSS/JavaScript handling from VSCode and adds Smarty specific functionality.

What’s New?

  • Check out the changelog to see what’s new.

Features

The language server provides:

  • Code completion for standard Smarty 2 blocks and common modifiers.
  • Smarty plugin directory support with signatures.
    • The code automatically searches for plugins directories and can be configured to point to additional directories.
    • Custom block and compiler functions will be suggested if found in the plugin directory. In addition, attributes for custom functions will be suggested.
    • Custom modifiers will be suggested in found in the plugin directory.
  • Variable completion will suggest variables seen elsewhere in the same file.
  • The file attribute of {include} is a link to the included template.
  • The file attribute of {include} will autocomplete if the current file includes /templates/ in it’s page.
  • XSS vulnerability warnings.

Extension Settings

This extension allows the following settings:

  • smarty.maxNumberOfDiagnosticMsgs: Maximum number of warnings or errors to show (e.g. XSS warnings).
  • smarty.disableHtmlAttributeCompletionQuotes: When completing an HTML attribute such as class=\"...\", should quotes be stripped? If you like this option, please add a +1 react and comment on microsoft/vscode#131144 to request that it be added to the standard HTML language in VS Code.
  • smarty.pluginDirs: List of directories to search fro Smarty plugins in.
  • smarty.xssExemptRegularExpressions: List of regular expressions to disable XSS warnings on. For example, "_ts$" will skip warnings on variables ending in _ts and "^\\$myVar$" will skip warnings on the $myVar variable.
  • smarty.xssExemptModifiers: List of Smarty modifiers that will suppress XSS warning. For example, "custom_xss_cleaner" would remove warnings on {$myVar|custom_xss_cleaner}.
  • smarty.customModifiers: List of custom Smarty modifiers to show in completions. This is useful for plugins not defined in the plugins directory.

About

VSCode Smarty Language Server

Resources

Readme
MIT license
Activity

Stars

4 stars

Watchers

4 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.