Skip to content

sebthom/extra-syntax-highlighting-eclipse-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

"Extra Syntax Highlighting" plugin for Eclipse

Build Status License Contributor Covenant

Feedback and high-quality pull requests are highly welcome!

  1. About
  2. What is it?
  3. Installation
  4. Supported File Formats/Languages
  5. Building from Sources
  6. License

What is it?

This EclipseⓇ plug-in adds syntax highlighting support for the following languages/file formats utilizing TM4E:

For a lot more formats install the TM4E Language Pack from the TM4E update site https://download.eclipse.org/tm4e/releases/latest/

For the following languages/file formats you can also install specialised Eclipse plug-ins with additional features:

Installation

To install the plugin into an existing Eclipse installation do:

  1. Within Eclipse go to: Help -> Install New Software...
  2. Enter the following update site URL: https://raw.githubusercontent.com/sebthom/extra-syntax-highlighting-eclipse-plugin/updatesite
  3. Select the Extra Syntax Highlighting feature to install.
  4. Ensure that the option Contact all update sites during install to find required software is enabled.
  5. Click Next twice.
  6. Read/accept the license terms and click Finish.
  7. Eclipse will now download the necessary files in the background.
  8. When the download has finished, Eclipse will ask about installing unsigned content. You need to accept if you want to
  9. After installation you will be prompted for a restart of Eclipse, which is recommended.

Supported File Formats/Languages

Language/Format File Associations Source
Apache HTTP Config file-extensions="conf, htaccess, htgroups, htpasswd" master@mrmlnc/vscode-apache
Astro file-extensions="astro" main@withastro/language-tools
bazelrc file-extensions="bazelrc"
file-names=".bazelrc, bazel.rc"
master@bazelbuild/vscode-bazel
Entity Relationship file-extensions="er" master@mikkel-ol/vsc-er-syntax-highlighting
GraphQL file-extensions="gql, graphql, graphqls" main@graphql/graphiql
GraphViz DOT File file-extensions="dot" master@textmate/graphviz.tmbundle
HashiCorp Sentinel file-extensions="sentinel" main@hashicorp/syntax
HashiCorp Terraform file-extensions="tf, tfvars" main@hashicorp/syntax
Haxe file-extensions="hx" master@vshaxe/haxe-TmLanguage
HCL Config File file-extensions="hcl" main@hashicorp/syntax
helm-template file-patterns="**/templates/**/*.tpl, **/templates/**/*.yaml, **/templates/**/*.yml, **/templates/*.tpl, **/templates/*.yaml, **/templates/*.yml" master@vscode-kubernetes-tools/vscode-kubernetes-tools
Jinja C++ file-extensions="c.j2, c.jinja, c.jinja2, cpp.j2, cpp.jinja, cpp.jinja2, h.j2, h.jinja, h.jinja2" main@samuelcolvin/jinjahtml-vscode
Jinja Cisco Config file-extensions="cisco.j2, cisco.jinja, cisco.jinja2, ios.j2, ios.jinja, ios.jinja2" main@samuelcolvin/jinjahtml-vscode
Jinja CSS file-extensions="css.j2, css.jinja, css.jinja2" main@samuelcolvin/jinjahtml-vscode
Jinja Cython file-extensions="pxd.j2, pxd.jinja, pxd.jinja2, pxi.j2, pxi.jinja, pxi.jinja2, pyx.j2, pyx.jinja, pyx.jinja2" main@samuelcolvin/jinjahtml-vscode
Jinja Dockerfile file-extensions="dockerfile.j2, dockerfile.jinja, dockerfile.jinja2"
file-names="Dockerfile.j2, Dockerfile.jinja, Dockerfile.jinja2"
main@samuelcolvin/jinjahtml-vscode
Jinja Groovy file-extensions="groovy.j2, groovy.jinja, groovy.jinja2" main@samuelcolvin/jinjahtml-vscode
Jinja HTML file-extensions="htm.j2, htm.jinja, htm.jinja2"
file-patterns="*html.j2, *html.jinja, *html.jinja2"
main@samuelcolvin/jinjahtml-vscode
Jinja Java file-extensions="java.j2, java.jinja, java.jinja2" main@samuelcolvin/jinjahtml-vscode
Jinja JavaScript file-extensions="js.j2, js.jinja2" main@samuelcolvin/jinjahtml-vscode
Jinja JSON file-extensions="code-workspace.j2, code-workspace.jinja, code-workspace.jinja2, json.j2, json.jinja, json.jinja2" main@samuelcolvin/jinjahtml-vscode
Jinja LaTeX file-extensions="latex.j2, latex.jinja2, tex.j2, tex.jinja2" main@samuelcolvin/jinjahtml-vscode
Jinja Lua file-extensions="lua.j2, lua.jinja, lua.jinja2" main@samuelcolvin/jinjahtml-vscode
Jinja Markdown file-extensions="md.j2, md.jinja, md.jinja2" main@samuelcolvin/jinjahtml-vscode
Jinja Nginx file-extensions="conf.j2, conf.jinja, conf.jinja2" main@samuelcolvin/jinjahtml-vscode
Jinja PHP file-extensions="php.j2, php.jinja, php.jinja2" main@samuelcolvin/jinjahtml-vscode
Jinja Properties/ini/Conf file-extensions="cfg.j2, conf.j2, desktop.j2, directory.j2, ini.j2, properties.j2" main@samuelcolvin/jinjahtml-vscode
Jinja Python file-extensions="py.j2, py.jinja, py.jinja2, pyi.j2, pyi.jinja, pyi.jinja2" main@samuelcolvin/jinjahtml-vscode
Jinja Ruby file-extensions="rb.j2, rb.jinja2, rbw.j2, rbw.jinja2" main@samuelcolvin/jinjahtml-vscode
Jinja Rust file-extensions="rs.j2, rs.jinja, rs.jinja2" main@samuelcolvin/jinjahtml-vscode
Jinja Shell Script file-extensions="bash.j2, bash_aliases.j2, bash_login.j2, bash_logout.j2, bash_profile.j2, bashrc.j2, ebuild.j2, env.j2, env.jinja, env.jinja2, install.j2, ksh.j2, profile.j2, sh.j2, zlogin.j2, zlogout.j2, zprofile.j2, zsh-theme.j2, zsh.j2, zshenv.j2, zshrc.j2" main@samuelcolvin/jinjahtml-vscode
Jinja SQL file-extensions="sql.j2, sql.jinja, sql.jinja2" main@samuelcolvin/jinjahtml-vscode
Jinja Systemd Unit File file-extensions="automount.j2, automount.jinja, automount.jinja2, device.j2, device.jinja, device.jinja2, link.j2, link.jinja, link.jinja2, mount.j2, mount.jinja, mount.jinja2, netdev.j2, netdev.jinja, netdev.jinja2, network.j2, network.jinja, network.jinja2, path.j2, path.jinja, path.jinja2, scope.j2, scope.jinja, scope.jinja2, service.j2, service.jinja, service.jinja2, slice.j2, slice.jinja, slice.jinja2, snapshot.j2, snapshot.jinja, snapshot.jinja2, socket.j2, socket.jinja, socket.jinja2, swap.j2, swap.jinja, swap.jinja2, target.j2, target.jinja, target.jinja2, timer.j2, timer.jinja, timer.jinja2" main@samuelcolvin/jinjahtml-vscode
Jinja Terraform file-extensions="hcl.j2, hcl.jinja, hcl.jinja2, tf.j2, tf.jinja, tf.jinja2, tfvars.j2, tfvars.jinja, tfvars.jinja2" main@samuelcolvin/jinjahtml-vscode
Jinja TOML file-extensions="toml.j2, toml.jinja, toml.jinja2" main@samuelcolvin/jinjahtml-vscode
Jinja TypeScript file-extensions="ts.j2, ts.jinja2" main@samuelcolvin/jinjahtml-vscode
Jinja XML file-extensions="xml.j2, xml.jinja, xml.jinja2" main@samuelcolvin/jinjahtml-vscode
Jinja YAML file-extensions="sls, yaml.j2, yaml.jinja, yaml.jinja2, yml.j2, yml.jinja, yml.jinja2" main@samuelcolvin/jinjahtml-vscode
JSON5 file-extensions="json5" master@katjanakosic/vscode-json5
Kotlin file-extensions="kt, kts" main@fwcd/vscode-kotlin
LDIF File file-extensions="ldif" master@FlashSystems/LDIF-Syntax
Mako Template file-extensions="mako" master@marconi/mako-tmbundle
Markdown file-extensions="livemd, markdown, md, mdown, mdwn, mkd, mkdn, mkdown, ronn, scd, workbook" main@wooorm/markdown-tm-language
NGINX Conf file-extensions="conf, conf.default, conf.template, fastcgi_params, mime.types, nginx, nginx.conf, scgi_params, uwsgi_params" main@ahmadalli/vscode-nginx-conf
nushell file-extensions="nu" main@nushell/vscode-nushell-lang
OpenGL Shading Language file-extensions="comp, csh, frag, fs, fsh, fshader, geom, glsl, gs, gsh, gshader, mesh, rahit, rcall, rchit, rgen, rint, rmiss, task, tesc, tese, vert, vs, vsh, vshader" master@GeForceLegend/vscode-glsl
Pascal file-extensions="dfm, dpk, dpr, fmx, lfm, lpr, p, pas" master@textmate/pascal.tmbundle
PlantUML file-extensions="iuml, plantuml, pu, puml, wsd" master@qjebbs/vscode-plantuml
Prisma file-extensions="prisma" main@prisma/language-tools
Starlark file-extensions="BUILD, WORKSPACE, bazel, bzl, bzlmod, sky, star"
file-names="BUILD, WORKSPACE"
master@bazelbuild/vscode-bazel
Svelte file-extensions="svelte" master@sveltejs/language-tools
TOML Config File file-extensions="toml"
file-names="Cargo.lock, Pipfile, pdm.lock"
master@juggernautjp/less-toml [upstream]

Building from Sources

To ensure reproducible builds this Maven project inherits from the vegardit-maven-parent project which declares fixed versions and sensible default settings for all official Maven plug-ins.

The project also uses the maven-toolchains-plugin which decouples the JDK that is used to execute Maven and it's plug-ins from the target JDK that is used for compilation and/or unit testing. This ensures full binary compatibility of the compiled artifacts with the runtime library of the required target JDK.

To build the project follow these steps:

  1. Download and install a Java 17 SDK, e.g. from:

  2. Download and install the latest Maven distribution.

  3. In your user home directory create the file .m2/toolchains.xml with the following content:

    <?xml version="1.0" encoding="UTF8"?>
    <toolchains>
       <toolchain>
          <type>jdk</type>
          <provides>
             <version>17</version>
             <vendor>default</vendor>
          </provides>
          <configuration>
             <jdkHome>[PATH_TO_YOUR_JDK_17]</jdkHome>
          </configuration>
       </toolchain>
    </toolchains>

    Set the [PATH_TO_YOUR_JDK_17] parameter accordingly.

  4. Checkout the code using one of the following methods:

  5. Run mvn clean verify in the project root directory. This will execute compilation, unit-testing, integration-testing and packaging of all artifacts.

License

If not otherwise specified (see below), files in this repository fall under the Eclipse Public License 2.0.

Individual files contain the following tag instead of the full license text:

SPDX-License-Identifier: EPL-2.0

This enables machine processing of license information based on the SPDX License Identifiers that are available here: https://spdx.org/licenses/.

An exception is made for:

  1. files in readable text which contain their own license information, or
  2. files in a directory containing a separate LICENSE.txt file, or
  3. files where an accompanying file exists in the same directory with a .LICENSE.txt suffix added to the base-name of the original file. For example foobar.js is may be accompanied by a foobar.LICENSE.txt license file.