Git Product home page Git Product logo

cuda_complete_html_text's People

Contributors

halfbrained avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

cudatext-addons

cuda_complete_html_text's Issues

I would rewrite the validate_caret_pos

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.

don't work, 2

new.zip

  • it don't work for line 19:
<!-- Glo|ssary Toolbar -->
  • it don't work for line 25
yyy|yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy

fix text in .inf file

desc=Handles auto-completion command (Ctrl+Space) for HTML documents, only for plain text parts of document (not for HTML tags/attributes)

updated readme again

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

must use "$lexers" in .inf

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...

sometimes don't work...

<h1>
	<a id="GlossTop">Gl|ossary of Terms</a>     <------ here it dont work!
	Gl|                     <------- here it works ok
</h1>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.