#diff markdown - not highlighted.
1 messages ยท Page 1 of 1 (latest)
Hi, in the other channel you were giving me examples of what you expect vs what you see -- maybe some more screenshots here could be helpful?
Was almost ahead of you! ๐
Expected result :
+ cookies
- Cookies
This is following the format
```diff
- cookies
- cookies
```
As we can see chatGPT treats - (removals) and unchanged lines the same
Ahh so it's a color thing? The lines prefixed with - ought to be a different color?
Yep! the Minus lines should be red ๐ highlighted
indicating* a "removal"
Ooo I see. Thank you for teaching me that! So where did the red dot emoji come from in the OP? Was that its best attempt or did you instruct for that?
Part of a custom instruction indeed lemme copy it here :
[1] : For each addition add a comment in the code following this format , Addition : // ๐ข "ExplainChange"
[2] : For each removal add a comment in the code following this format , Removal : // ๐ด "ExplainChange"
Text appears lighter here as I had Dark Mode extension on just noticed sorry.
But the ideal would be for diff to act like you'd expect diff to work, I see now! Thanks again for the explanation, I hope it's a simple and quick fix for this!
Should be (if i remember well from a few years ago playing with highlighting ) some rule they need to update, can be complex can be not , ๐
But yep! Thanks for helping me clarify!
@rose saddle I might've fixed it ๐
Inspected the deletion line, noticed it had a special class.
Same for the addition line.
Addition has this as style
Deletion had nothing there. So I followed where that Addition line was added.
Then added the highlighted portion ๐
(likely not a full implementation as I see they have a bunch more stuff going on but I think it's just that ๐ )