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

Not working on INLINE css and javascript comments in style and script tags in html file #545

Open
MrSarrafi opened this issue Dec 6, 2024 · 1 comment

Comments

@MrSarrafi
Copy link

Dear Better Comments Development Team,

I hope this message finds you well. I am writing to report an issue I have encountered with the Better Comments extension for Visual Studio Code. Specifically, I have noticed that comments within inline <script> and <style> tags in HTML files are not being highlighted as expected.

I followed these steps to reproduce the issue:

  1. Opened a new HTML file in VS Code.
  2. Added inline <script> and <style> tags.
  3. Used the standard comment syntax for JavaScript (e.g., // TODO, // !) and CSS (e.g., /* TODO */).
  4. Unfortunately, the comments within both tags did not receive any color formatting.

I believe that comments inside inline <script> and <style> tags should be highlighted in the same manner as comments in .js and .css files.

For your reference, here are my setup details:

  • **VS Code Version:(Version: 1.95.3 (user setup)
    Commit: f1a4fb101478ce6ec82fe9627c43efbf9e98c813
    Date: 2024-11-13T14:50:04.152Z
    Electron: 32.2.1
    ElectronBuildId: 10427718
    Chromium: 128.0.6613.186
    Node.js: 20.18.0
    V8: 12.8.374.38-electron.0)

  • **Better Comments Version: 3.0.2

  • **Operating System: Windows_NT x64 10.0.19045

I would appreciate it if you could look into this issue, as it affects the clarity and readability of my code when working with inline JavaScript and CSS. If you need any additional information or would like me to provide further details, please feel free to reach out.

Thank you for your time and support.

Best regards,
Mehran Sarrafi
MehranSarrafi@yahoo.com

@edwinhuish
Copy link

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

2 participants