To be a first-class template engine, it is necessary to be a first-class template editor.
Tiny template engine has been introduced for some time, but because its syntax is independent, so the editor can only use the general text editor, but the editing efficiency is naturally low. Another way is to use the velocity editor for editing, but the problem often has the wrong syntax hints, some grammar can not be correctly prompted, in short, but all in all, is not good use. The question has already come, what should I do? The answer is, of course, better to have a own one.
Now, the proprietary editor of the tiny template engine comes up!
Feature Introduction
- Outline support: Supports displaying key content in the outline, and can quickly locate
- Syntax highlighting: support for coloring in the editor, based on syntax, making code easier to read and debug
- Error TIP: If there is an error in the template language, you can make an error in the project navigation, error view, and edit window
- Code folding: Support code folding for code blocks for easy reference
- Syntax hints: Support tiny template engine syntax hints and HTML syntax hints for quick entry
Introduced
Outline support, now supports macro definition, layout definition, layout implementation, variable definition four, you can quickly locate and select the relevant content by double-clicking the node in the outline tree
Syntax coloring, the color here is my own mess, only for the display effect, the back will let the artist carefully match the color
Error prompt, when the written template has errors, in the project navigation, editing window and error view will be displayed synchronously:
Click the X in front of the editor to display detailed error messages:
Code Folding
Syntax hints
Also support fuzzy matching, you can see the input OC, actually filtered only contains the content of O and C hints
In addition to the template language hints, support for HTML syntax is also supported:
Of course, support for HTML is not just a support tag, and attributes are supported:
Summarize
To some, the editor of the tiny template engine is displayed almost, with the support of the tool, the overall development efficiency can be significantly improved.
Of course, there are some shortcomings in its function, there will be some additional detail features to consider increasing:
- Press Ctrl+alt+mouseclick Click #end, jump to the beginning of the corresponding, click the beginning of the label such as: #macro的时候, jump to #end
- Formatting
Students are also welcome to put forward new needs have suggestions.
This plugin will be released soon, interested students, please pay attention to my relevant information.
Development tools for the tiny template engine