# using **xyz** instead of \foo{xyz}

How can I use **xyz** or another similar one instead of \foo{xyz} or \foo*{xyz}?

note: question is updated to reflect my concern, question is general and is not depended on a special package. You may use **xyz** form for any other command

-
I'm sure that on this site there's an answer about a very similar question. However, I don't see how the input **xyz** could be preferred to \lr{xyz}. –  egreg May 26 '12 at 8:38
Although, one simple solution is to define * character active, and assign a macro to it. –  Hasan Zakeri May 26 '12 at 9:25
I've found the answer I was referring to: tex.stackexchange.com/a/15374 –  egreg May 26 '12 at 9:41
@ Hassan Zakeri. Thanks, But the question is general and is not depended on XePersian directly. You may use **x** form for any other command. –  PHPst May 26 '12 at 12:32
If you are using luatex, then this approach for multiline comments can be easily adapted to your case. (Just add \foo{ and } at the beginning at the end of each match, and don't delete the intermediate text). Since this parses the text when the file is read, it does not suffer from any of the drawback of active characters. –  Aditya May 27 '12 at 9:36