react-express
react-express copied to clipboard
Highlight important parts in the code
Would it be possible to highlight the parts in the code that are being focussed on in the section? A few times there is a lot of code including styles around the one or two lines of code that is being talked about. For example, in Rendering with ternary -
{subtitle ? (
<h2 style={styles.subtitle}>{subtitle}</h2>
) : (
<h3 style={styles.empty}>No subtitle</h3>
)}
this is the part that should attract the reader's focus, but it blends in with 50 other lines of code.
This would be very helpful. It would go in the underlying project, react-native-web-player
.
I can do this at some point, but in case somebody wants to take it, this is a good place to start: https://github.com/dabbott/react-native-web-player/blob/master/components/workspace/Workspace.js#L357. We would add something like a new selectedLines=[...]
prop and a url param for it.