SlickEdit Community

SlickEdit Product Discussion => SlickEditĀ® => Slick-CĀ® Macro Programming => Topic started by: Bamsen on May 08, 2017, 10:59:28 am

Title: How to get the document mode of the current buffer?
Post by: Bamsen on May 08, 2017, 10:59:28 am
Hi,

I want to use new_file("<mode>") to create a new buffer of the same type as my current buffer. (XML, Plain Text ....)
How can I get the document mode of my current buffer to feed in to new_file?

---
Morten A. Steien
Title: Re: How to get the document mode of the current buffer?
Post by: jporkkahtc on May 08, 2017, 05:48:01 pm
      _str modeName = _LangGetModeName(p_LangId);

Title: Re: How to get the document mode of the current buffer?
Post by: Bamsen on May 09, 2017, 05:58:10 am
Perfect!
Thank you for your help.  :)