halfbrained / cuda_complete_html_text Goto Github PK
View Code? Open in Web Editor NEWCudaText plugin. HTML comment and tag-enclosed-text auto-completion
CudaText plugin. HTML comment and tag-enclosed-text auto-completion
<!-- Glo|ssary Toolbar -->
yyy|yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
'[\w\d]+'
I suggest simpler code: scan doc from the start, and count < > chars. (only those not in comments, quoted strings - check get_token(TOKEN_GET_KIND..) ).
change bool flag of "inside < >".
When we reach the needed caret-pos, just see the flag.
E.g. <div id="|">Cud</div>
title=
caption=
lexers=regex:HTML.*
homepage=https://github.com/halfbrained/cuda_complete_html_text
api=1.0.318
[item1]
section=events
events=on_complete+
[item1] must refer to 'lexers': like
lexers=$lexers
IIRC...
<h1>
<a id="GlossTop">Gl|ossary of Terms</a> <------ here it dont work!
Gl| <------- here it works ok
</h1>
del
Plugin for CudaText.
Handles auto-completion command (Ctrl+Space) for HTML documents:
- inside plain text parts of HTML document, ie ouf of <...> brackets
- inside HTML comments (note: this needs CudaText 1.141.6+)
Plugin is binded to lexer names which contain "HTML" at beginning, ie it should
work for all "HTMLxxxx" lexers.
Plugin should not interfere with built-in HTML auto-completion, and not interfere
with plugin "Complete From Text" (which didn't work in HTML anyway).
Plugin has options in the config file, call menu item "Options / Settings-plugins / Complete HTML Text".
Options are:
- 'min_len': minimal word length, words of smaller length will be ignored.
- 'max_lines': if document has bigger count of lines, ignore this document.
- 'case_sens': case-sensitive; words starting with 'A' will be ignored when you typed 'a'.
Authors:
- Alexey Torgashin (CudaText)
- halfbrained (https://github.com/halfbrained)
License: MIT
desc=Handles auto-completion command (Ctrl+Space) for HTML documents, only for plain text parts of document (not for HTML tags/attributes)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.