I was wondering how can create a texstudio script for removing the $ $ notation. what is the problem of following code.
%SCRIPT txt = cursor.selectedText() txt.replace("$","") editor.write(txt) cursor.clearSelection()
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.Sign up to join this community
With the help of Charles Stewart I finnaly got the answer
%SCRIPT var txt = cursor.selectedText() var str = txt.replace(/[$]/g,"") editor.replaceSelectedText(str) cursor.clearSelection()