[gedit-list] using gedit get_active_document



Hi:

   I'm writing a plugin for gedit.  I need to analyze the text of the document to check it for syntax.

   To do this, in the plugin, I'm doing:

doc = self._window.get_active_document()

fileString = doc.to_string()

   This doesn't work.  Any idea how I can get the text of the active doc and hold in the plugin so I can deal
with it as a string?

Many thx.
W. MacKenzie



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]