Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

HTML Entities Autocomplete #14

Closed
cakebake opened this issue Oct 6, 2015 · 10 comments
Closed

HTML Entities Autocomplete #14

cakebake opened this issue Oct 6, 2015 · 10 comments

Comments

@cakebake
Copy link

cakebake commented Oct 6, 2015

Should this package automatically suggest HTML Entities like  , &, ü, ..., or would that be the task of other packages?

List: https://github.com/adobe/brackets/blob/master/src/extensions/default/HtmlEntityCodeHints/SpecialChars.json

@benogle
Copy link
Contributor

benogle commented Oct 7, 2015

Yeah, this seems like a reasonable addition to this package. PRs welcome :)

@benogle benogle removed the question label Oct 7, 2015
@benogle benogle changed the title Interest in HTML Entities Autocomplete HTML Entities Autocomplete Oct 7, 2015
@cakebake
Copy link
Author

cakebake commented Oct 8, 2015

Ok, I just have to look at the structure for the autocomplete 👍

@jeancroy
Copy link

Maybe add those as snippet for the HTML language ?
https://github.com/atom/language-html/blob/master/snippets/language-html.cson

@cakebake
Copy link
Author

@ghost
Copy link

ghost commented Oct 5, 2017

Hi. I'm a newbie and would like to fix my first open source bug. Would someone please help me go about fixing this bug?

@Aerijo
Copy link

Aerijo commented Nov 28, 2017

@ScareCROW21 The completions are defined in the file completions.json. You can look at lib/provider.coffee to see how these completions are parsed and turned into suggestions.

As this package is like an 'add-on' for autocomple-plus I also suggest reading about the provider API to familiarise yourself with how this all works.

@guozhaonan
Copy link

Hi, is this issue still open? I'd love to write a fix if it is :)

@LuizGyro
Copy link

LuizGyro commented Apr 1, 2019

Hi, I'd like to try to implement this one as my first contribution. Is this one still beginner-friendly? Thank you!

@Fwalsh96
Copy link

Does it matter where these entities are inserted in the completions.json file?

@TheOtterlord
Copy link

@Fwalsh96 Yes. If they are placed in the tag section, they will be autocompleted as tags. If they are in the attribute section, they will be autocompleted as attributes. I think you would need to add another section and add to the js code to complete them correctly

@cakebake cakebake closed this as completed Oct 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

9 participants