MoritzKn / atom-autocomplete-jsp

Atom autocomplete+ provider for JSP / JSPX

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JSP Autocomplete package

Build Status

This Atom package adds autocompletion support for JSP with focus on it's subset JSPX. Uses the autocomplete-plus package.

See setup and changelog.

Features

Autocompletion for implicit objects

Screenshot of autocompletion for implicit objects

Autocompletion for EL keywords

Screenshot of autocompletion for keywords

Autocompletion for variables defined in tags

Screenshot of autocompletion for variables

Autocompletion for variables from <jsp:useBean> tags

Screenshot of autocompletion for variables

Autocompletion of tag functions from .tld files

Screenshot of autocompletion for el-functions

See setup for an explanation how to get autocompletion based on .tld files to work.

Abbreviations

Autocompletion for abbreviations

Autocompletion for tags from .tld files

Autocompletion for tag

Autocompletion for attributes from .tld files

Autocompletion for tag attributes

Autocompletion for attributes values (scope, var)

Autocompletion for var attribute Autocompletion for scope attribute

Follows include directives to find taglib declarations

To find all taglib declarations the package crawls the file system by following include directives.

Goals

  • EL autocompletion for properties

What this package won't do

  • Autocomplete embedded Java code

Config

  • tldSources: array of directories containing tld files

Setup

  • Install this package
apm install autocomplete-jsp
  • Set the configuration autocomplete-jsp.tldSources to a directory of your choice, for example ~/tlds and make sure this directory exist.
mkdir ~/tlds
  • Make sure all JSTL TLDs are in this directory
cd ~/tlds
wget https://raw.githubusercontent.com/javaee/jstl-api/master/impl/src/main/resources/META-INF/c.tld
wget https://raw.githubusercontent.com/javaee/jstl-api/master/impl/src/main/resources/META-INF/fmt.tld
wget https://raw.githubusercontent.com/javaee/jstl-api/master/impl/src/main/resources/META-INF/fn.tld
wget https://raw.githubusercontent.com/javaee/jstl-api/master/impl/src/main/resources/META-INF/sql.tld
wget https://raw.githubusercontent.com/javaee/jstl-api/master/impl/src/main/resources/META-INF/x.tld
  • Copy all of your custom .tld files into this directory
cp ~/workspace/someProject/src/main/resources/WEB-INF/*.tld ~/tlds
# or perhaps even
cp ~/workspace/*/src/**.tld ~/tlds/

License

This project is licensed under the terms of the MIT license. A copy of the license can be found in the root directory of the project in the file LICENSE.md.

About

Atom autocomplete+ provider for JSP / JSPX

License:MIT License


Languages

Language:JavaScript 100.0%