better-comments
better-comments copied to clipboard
Feature-Request: Add support for JavaScript React JSX comments {/* ... */}
When commenting JSX in JavaScript React, comments are created with {/* This is a comment */}
. It'd be awesome if this was a supported format 😎
and within back ticks
would be great... for instance, within styled-components.
const ImageStyled = styled.img`
/* TODO: add styling */
flex: 1 1 auto;
`;
No love for JSX :-(
Ugly workaround: {/* // TODO: thing */}
@thejustinwalsh Thanks for the tip!
But I hope that JSX (.js
, .jsx
, .tsx
) will still be added.
I'll look into this further, but one issue here is the files having multiple languages inside. The events I hook into to decide what to colour are active file changing and extensions changing - at the minute I'm not using any hooks that indicate the active language within the file. However, if that exists, this could be doable
@aaron-bond any updates?