I use CodeMirror for my hobby project.
The repository is here:
[login to view URL]
And you can check it here:
[login to view URL]
I use an addon called "matchbrackets" which highlights the two corresponding brackets.
[login to view URL]
I'd like to get the code within the matching two brackets.
For example, please look at the code below:
(defun f1()
(print 10) )
In this case, when I put the cursor just after the parenthesis following "Hello", I'd like to copy the code 'print 10'.
In this job, I'd like you to write a function to copy the code within two parentheses. I'd like to set the two parentheses that are highlighted in the editor, that is, it depends on where to stop the cursor in the editor.
I'd appreciate your help.
"Hi, Hope you are doing well!
I am a fulltime freelance web & mobile app developer.
I got lot of experience on both web & mobile app development,
Good with HTML, CSS, JS for frontend website
Love coding with PHP and MySQL as database for backend.
Using Wordpress as CMS, and using Apache Cordova for building Hybrid App (Android & IOS)
Feel free to ask anything :)
Thanks