Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Textile Language FeaturesNew to Visual Studio Code? Get it now.

Textile Language Features

GehDoc

|
837 installs
| (1) | Free
Rich language support for Textile: live preview, code folding, link to headlines, code blocks syntax highlighting...
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Textile Language Features

Marketplace Version Latest Version Build Status CII Best Practices
Preview and rich language support, for the Textile markup language.

You can split your screen vertically, and keep the Textile source code side by side with the preview. The preview is updated as you type, and stays synchronized with the source code when you scroll.

As, this extension is based on the Visual Studio Code's Markdown Language Features, it provides MUCH MORE than a preview.
It uses a modified version of textile.js Textile parser in order to display a WYSIWYG preview of your textile document.

Installation

From Marketplace within VS Code

Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter :

ext install GehDoc.vscode-textile-preview

From Marketplace with CLI

In your favorite shell, the following command will download and install the extension :

code --install-extension GehDoc.vscode-textile-preview

From Github

Download the packaged extension from the release page and install it from the command line :

code --install-extension path/to/vscode-textile-preview-*.vsix

Working with Textile

Create or open any file with a .textile extension, and then you can toggle the visualization of the editor between the code and the preview of the Textile file. To switch between views, press (Ctrl+Shift+V) in the editor. You can view the preview side-by-side (Ctrl+K V) with the file you are editing and see changes reflected in real-time as you edit.

Demo

Features

This extension is entirely based on the Markdown preview provided by Visual Studio Code, and offers the same level of functionality :

  • view Textile source and its HTML preview side by side, with synchronised scrolling;
  • include images, from local or network, with manageable security of the preview's content;
  • click on links, in the source view and in the HTML preview.
    Internal and external links to a paragraph headline of a textile file are supported (slugify);
  • see the document headlines structure in the outline view;
  • fold paragraphs from their headline, multi-line list-items, code blocks, and special HTML comments <!-- #region [Optional text] --> and <!-- #endregion [Optional text] -->.
  • blockquote syntax coloring, with bc[language]. or <pre><code class="language">, or <pre><code lang="language">.
    Look at the official highlight.js documentation for the list of supported languages.

And also :

  • the HTML preview supports VSCode light and dark themes;
  • the extension is translated into the 9 VSCode core languages.

Missing features

Some features of the original Markdown preview have been disabled. To see the full list of features and interactions, you can read the documentation of the Visual Studio Code's Markdown Language Features.

Features considered out of scope of this extension :

  • Textile code snippets / Source syntax coloring : You have to use other extensions from the marketplace for these purposes;
  • Support plugins, like Mardown-it : Need antother textile to HTML engine;
  • Telemetry reporter : Need a non free Azure account : https://www.npmjs.com/package/vscode-extension-telemetry

Maybe implemented, if requested :

  • Add other translations than the 9 core languages listed there : https://github.com/microsoft/vscode-loc/#visual-studio-code-language-packs
  • Support enabling/disabling 'linkify' = Enable or disable conversion of URL-like text to links in the Textile preview;
  • Some helper functionalities, like image stabilization during loading. Look here, and search for Disabled and FIXME;
  • Support for integration into Codespaces browser based editor.

Release Notes

See CHANGELOG.md.

Roadmap

All bugs and enhancements are tagged, and will be processed ASAP. Feel free to contribute !

Supporting

  • Give feedback and rating through Visual Studio Marketplace.
  • Add stars to the project on github if you like it !
  • Financially sponsor our project here, or through the GitHub ❤ sponsor button on the project's repository.

Your support is greatly appreciated !

Contributing

  • Submit bugs and feature requests, and help us verify as they are checked in;
  • Fix issues and contribute to the code.

Before contributing, take the time to read the contributing guide.

License

This project is licensed under the terms of the MIT license.

It is entirely based on :

  • Visual Studio Code's Markdown Language Features under the terms of the MIT license.
  • and, the Visual Studio Code Language Packs under the terms of the MIT license.

It includes a modified version of textile-js under the terms of the MIT license.

The Textile logo mark is from Textile logo marks under Creative Commons CC0 1.0 Universal (CC0 1.0) License.

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2019 Microsoft