When we are going to write a macro in TeXstudio, I know we can add a place holder by using %<%> in normal mode, but if we switch to script mode this command does not work in TeXstudio.

What command we should use to add a place holder in script mode?

  • Welcome to TeX.SX! You can have a look at our starter guide to familiarize yourself further with our format. Hopefully someone will be able to answer your question (I don't use TeXstudio). In the mean time, you could not find a similar existing implementation? – JP-Ellis Feb 15 '16 at 5:45
  • This functionality is currently not exposed in the scripting interface of TeXstudio. You may open a feature request. – Tim Hoffmann Feb 15 '16 at 21:32
  • Does the comment on sourceforge.net/p/texstudio/feature-requests/1002 solve your issue? You (or if you prefer, I) could write an answer then and close this post here. – LaRiFaRi Feb 23 '16 at 23:32
  • @LaRiFaRi yes you can write here – noname1014 Feb 24 '16 at 7:54

There is the editor.insertSnippet() command you can invoke in script mode. The placeholder commands work as expected.

For example:




Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.