OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

How to count the number of changed lines in monaco diff editor?

  • Thread starter Thread starter gigi_91
  • Start date Start date
G

gigi_91

Guest
I want to count the changed lines in monaco diff editor. Something how that looks like in "Github" where is visible how many lines are added or deleted. For example, in the Navigating a Diff playground, I want to show that 2 lines are deleted, and 2 lines added.

<p>I want to count the changed lines in monaco diff editor. Something how that looks like in "Github" where is visible how many lines are added or deleted.
For example, in the <a href="https://microsoft.github.io/monaco-editor/playground.html#creating-the-diffeditor-navigating-a-diff" rel="nofollow noreferrer">Navigating a Diff playground</a>,
I want to show that 2 lines are deleted, and 2 lines added.</p>
 
Top