[gedit-list] using gedit get_active_document
- From: Wendell MacKenzie <mackendw gmail com>
- To: gedit-list gnome org
- Subject: [gedit-list] using gedit get_active_document
- Date: Fri, 14 Dec 2012 13:51:57 -0000
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]