Codeblock Diffing Capabilities #2760
-
Hi Paste! Currently in Evergreen, we have a Code Block that has capabilities to differentiate what the changes are. This is important to Segment users to understand the impact of their changes. This also supplements a few revision history patterns we have. We also have line numbers inside the code blocks. Can you provide us with more information on how we should approach this component? Can the Paste Code Block somehow be configured to include this? Or is this a component Segment should build for our purposes? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @brannytempy! Though the Code Block component does include the option for line numbers (the |
Beta Was this translation helpful? Give feedback.
Hi @brannytempy!
Though the Code Block component does include the option for line numbers (the
showLineNumbers
prop), the syntax highlighting library we use would only be able to highlight diffs by line, not character, which is what your examples show. I think in this case, it would make more sense for Segment to build a custom component to get the specific functionality you're looking for!