Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tags inside CDATA #1

Open
billynoah opened this issue Dec 28, 2017 · 5 comments
Open

tags inside CDATA #1

billynoah opened this issue Dec 28, 2017 · 5 comments

Comments

@billynoah
Copy link

Is there some way to get this to work inside CDATA sections? In beta version of Sublime it worked fine but after updating the main app (correctly?) does not parse tag elements inside CDATA sections so breaks tag closing in those areas.

@michaelzoidl
Copy link

michaelzoidl commented May 15, 2018

+1

Same for JS/JSX files (e.g. react-components)
Is there a way to enable the plugin for other file-types?

@sh4nks
Copy link
Owner

sh4nks commented May 15, 2018

Could you post an example here that I could use?

@michaelzoidl
Copy link

Sure, here is some example where i want to use this plugin, i expect in the DOM part of the file the same behaviour like in normal HTML files.

Filename: hello-world.js
Content:

export default () => (
  <div>
    <Text>Hello World!</Text>
    <Emoji fire />
  </div>
);

@billynoah
Copy link
Author

billynoah commented May 15, 2018

@sh4nks, although yours is related, it might be considered a separate issue.

@michaelzoidl - Thanks for your reply. To address the original topic of tag completion inside CDATA - here is an example:

<?xml version="1.0" encoding="UTF-8"?>
<fruit>
	<name>Apple</name>
	<description><![CDATA[ <div>Best fruit ever</div> ]]></description>
</fruit>

You'll note the <div> tags inside the CDATA section will not complete. This is a frequent use issue for me adding html code inside vQmod xml files.

Also, I realize that in some scenarios parsing tags inside of CDATA could potentially be troublesome so if you are able to implement this feature it may be worth adding a preferences toggle of some sort.

@sh4nks
Copy link
Owner

sh4nks commented Apr 8, 2020

Hi @billynoah

sorry for my very late. I'll take a look at this issue later this or next week.

What is the desired behavior?
Should it complete the ]]> after writing <![CDATA[?

Nevermind. I just read the bug description again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants