Skip to content

Commit d04be48

Browse files
committed
fix for Documentation: replace "Notepad" and "Editor" with "notepad" and "editor" #59
1 parent b1246b9 commit d04be48

File tree

3 files changed

+757
-757
lines changed

3 files changed

+757
-757
lines changed

PythonScript/src/CreateWrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ def writeScintillaDoc(f, out):
702702
v["Param2Type"] = mapType(v["Param2Type"])
703703

704704
# out.write("/** " + "\n * ".join(v["Comment"]) + "\n */\n")
705-
out.write(".. method:: Editor.")
705+
out.write(".. method:: eitor.")
706706
out.write(getPythonSignature(v).replace('intptr_t','int')) # documentation should contain int instead of intptr_t
707707
out.write("\n\n ")
708708
out.write("\n ".join(v["Comment"]).replace('\\', '\\\\'))

docs/source/notepad.rst

Lines changed: 51 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Notepad++ Object
55

66

77

8-
.. method:: Notepad.activateBufferID(bufferID)
8+
.. method:: notepad.activateBufferID(bufferID)
99

1010
Activates the given *bufferID*::
1111
@@ -14,19 +14,19 @@ Notepad++ Object
1414
notepad.activateBufferID(bufferID)
1515

1616

17-
.. method:: Notepad.activateFile(filename)
17+
.. method:: notepad.activateFile(filename)
1818

1919
Activates the document with the given filename
2020

2121

2222

23-
.. method:: Notepad.activateIndex(view, index)
23+
.. method:: notepad.activateIndex(view, index)
2424

2525
Activates the document with the given view and index.
2626
*view* is 0 or 1.
2727

2828

29-
.. method:: Notepad.callback(function, notifications)
29+
.. method:: notepad.callback(function, notifications)
3030

3131
Registers a callback function for a notification.
3232
*notifications* is a list of messages to call the function for.::
@@ -52,86 +52,86 @@ Notepad++ Object
5252
``True`` if the registration was successful
5353

5454

55-
.. method:: Notepad.clearCallbacks()
55+
.. method:: notepad.clearCallbacks()
5656

5757
Unregisters all callbacks
5858

59-
.. method:: Notepad.clearCallbacks(function)
59+
.. method:: notepad.clearCallbacks(function)
6060

6161
Unregisters all callbacks for the given function. Note that this uses the actual function object, so if the function has
6262
been redefined since it was registered, this will fail. If this has happened, use one of the other ``clearCallbacks()``
6363
functions.
6464

6565

6666

67-
.. method:: Notepad.clearCallbacks(eventsList)
67+
.. method:: notepad.clearCallbacks(eventsList)
6868

6969
Unregisters all callbacks for the given list of events.::
7070
7171
notepad.clearCallbacks([NOTIFICATION.BUFFERACTIVATED, NOTIFICATION.FILESAVED])
7272

7373
See :class:`NOTIFICATION`
7474

75-
.. method:: Notepad.clearCallbacks(function, eventsList)
75+
.. method:: notepad.clearCallbacks(function, eventsList)
7676

7777
Unregisters the callback for the given callback function for the list of events.
7878

7979

80-
.. method:: Notepad.close()
80+
.. method:: notepad.close()
8181

8282
Closes the currently active document
8383

8484

85-
.. method:: Notepad.closeAll()
85+
.. method:: notepad.closeAll()
8686

8787
Closes all open documents
8888

8989

90-
.. method:: Notepad.closeAllButCurrent()
90+
.. method:: notepad.closeAllButCurrent()
9191

9292
Closes all but the currently active document
9393

94-
.. method:: Notepad.createScintilla()
94+
.. method:: notepad.createScintilla()
9595

9696
Create a new Scintilla handle. Returns an Editor object
9797

9898

99-
.. method:: Notepad.destroyScintilla(editor)
99+
.. method:: notepad.destroyScintilla(editor)
100100

101101
Destroy a Scintilla handle created with createScintilla
102102

103-
.. method:: Notepad.getCommandLine()
103+
.. method:: notepad.getCommandLine()
104104

105105
Gets the command line used to start Notepad++
106106

107107

108-
.. method:: Notepad.getCurrentBufferID()
108+
.. method:: notepad.getCurrentBufferID()
109109

110110
Gets the bufferID of the currently active buffer
111111

112112

113-
.. method:: Notepad.getCurrentDocIndex(view)
113+
.. method:: notepad.getCurrentDocIndex(view)
114114

115115
Gets the current active index for the given *view* (0 or 1)
116116

117117

118-
.. method:: Notepad.getCurrentFilename()
118+
.. method:: notepad.getCurrentFilename()
119119

120120
Gets the filename of the active document
121121

122-
.. method:: Notepad.getCurrentLang()
122+
.. method:: notepad.getCurrentLang()
123123

124124
Get the current language type
125125

126126
Returns:
127127
:class:`LANGTYPE`
128128

129129

130-
.. method:: Notepad.getCurrentView()
130+
.. method:: notepad.getCurrentView()
131131

132132
Get the currently active view (0 or 1)
133133

134-
.. method:: Notepad.getEncoding([bufferID]) -> BUFFERENCODING
134+
.. method:: notepad.getEncoding([bufferID]) -> BUFFERENCODING
135135

136136
Gets the encoding of the given *bufferID*. If no bufferID is given, then the encoding of the
137137
currently active buffer is returned.
@@ -140,15 +140,15 @@ Notepad++ Object
140140
:class:`BUFFERENCODING`
141141

142142

143-
.. method:: Notepad.getFiles()
143+
.. method:: notepad.getFiles()
144144

145145
Gets a list of the open filenames.
146146

147147
Returns:
148148
A list of tuples containing ``(filename, bufferID, index, view)``
149149

150150

151-
.. method:: Notepad.getFormatType([bufferID]) -> FORMATTYPE
151+
.. method:: notepad.getFormatType([bufferID]) -> FORMATTYPE
152152

153153
Gets the format type (i.e. Windows, Unix or Mac) of the given *bufferID*.
154154
If no bufferID is given, then the format of the currently active buffer is returned.
@@ -157,49 +157,49 @@ Notepad++ Object
157157
:class:`FORMATTYPE`
158158

159159

160-
.. method:: Notepad.getLangType([bufferID]) -> LANGTYPE
160+
.. method:: notepad.getLangType([bufferID]) -> LANGTYPE
161161

162162
Gets the language type of the given *bufferID*.
163163
If no bufferID is given, then the language of the currently active buffer is returned.
164164

165165
Returns:
166166
:class:`LANGTYPE`
167167

168-
.. method:: Notepad.getNppDir() -> str
168+
.. method:: notepad.getNppDir() -> str
169169

170170
Gets the directory Notepad++ is running in (i.e. the location of notepad++.exe)
171171

172172

173173

174-
.. method:: Notepad.getPluginConfigDir() -> str
174+
.. method:: notepad.getPluginConfigDir() -> str
175175

176176
Gets the plugin config directory.
177177

178178

179-
.. method:: Notepad.getPluginMenuHandle() -> int
179+
.. method:: notepad.getPluginMenuHandle() -> int
180180

181181
Gets the handle for the Plugins menu.
182182

183183

184-
.. method:: Notepad.getVersion() -> tuple
184+
.. method:: notepad.getVersion() -> tuple
185185

186186
Gets the Notepad++ version as a tuple - e.g. 5.6.8 becomes ``(5,6,8)``
187187

188-
.. method:: Notepad.getPluginVersion() -> str
188+
.. method:: notepad.getPluginVersion() -> str
189189

190190
Gets the PythonScript plugin version as a string. There is always four parts to it. e.g. '0.9.2.0'
191191

192-
.. method:: Notepad.hideTabBar()
192+
.. method:: notepad.hideTabBar()
193193

194194
Hides the Tab bar
195195

196196

197-
.. method:: Notepad.menuCommand(menuCommand)
197+
.. method:: notepad.menuCommand(menuCommand)
198198

199199
Runs a Notepad++ menu command. Use the :class:`MENUCOMMAND` enum, or integers directly from the nativeLang.xml file.
200200

201201

202-
.. method:: Notepad.messageBox(message[, title[, flags]]) -> MessageBoxFlags
202+
.. method:: notepad.messageBox(message[, title[, flags]]) -> MessageBoxFlags
203203

204204
Displays a message box with the given *message* and *title*.
205205

@@ -210,16 +210,16 @@ Notepad++ Object
210210
A RESULTxxxx member of :class:`MESSAGEBOXFLAGS` as to which button was pressed.
211211

212212

213-
.. method:: Notepad.new()
213+
.. method:: notepad.new()
214214

215215
Create a new document.
216216

217-
.. method:: Notepad.open(filename)
217+
.. method:: notepad.open(filename)
218218

219219
Opens the given file.
220220

221221

222-
.. method:: Notepad.prompt(prompt, title[, defaultText]) -> str
222+
.. method:: notepad.prompt(prompt, title[, defaultText]) -> str
223223

224224
Prompts the user for some text. Optionally provide the default text to initialise the entry field.
225225

@@ -230,26 +230,26 @@ Notepad++ Object
230230
(note that is different to an empty string, which means that no input was given)
231231

232232

233-
.. method:: Notepad.reloadBuffer(bufferID)
233+
.. method:: notepad.reloadBuffer(bufferID)
234234

235235
Reloads the given bufferID
236236

237237

238-
.. method:: Notepad.reloadCurrentDocument()
238+
.. method:: notepad.reloadCurrentDocument()
239239

240240
Reloads the current document
241241

242242

243-
.. method:: Notepad.reloadFile(filename)
243+
.. method:: notepad.reloadFile(filename)
244244

245245
Reloads a filename.
246246

247-
.. method:: Notepad.runMenuCommand(menuName, menuOption[, refreshCache]) -> bool
247+
.. method:: notepad.runMenuCommand(menuName, menuOption[, refreshCache]) -> bool
248248

249249
Runs a command from the menus.
250250
For built-in menus use notepad.menuCommand(), for non built-in menus (e.g. TextFX and macros you've defined),
251251
use ``notepad.runMenuCommand(menuName, menuOption)``. For other plugin commands (in the plugin menu),
252-
use ``Notepad.runPluginCommand(pluginName, menuOption)_``
252+
use ``notepad.runPluginCommand(pluginName, menuOption)_``
253253

254254
Menus are searched for the text, and when found, the internal ID of the menu command is cached.
255255
When ``runMenuCommand`` is called, the cache is first checked if it holds the internal ID for the given
@@ -265,7 +265,7 @@ Notepad++ Object
265265
notepad.runMenuCommand('TextFX Edit', 'Delete Blank Lines')
266266

267267

268-
.. method:: Notepad.runPluginCommand(pluginName, menuOption[, refreshCache])
268+
.. method:: notepad.runPluginCommand(pluginName, menuOption[, refreshCache])
269269

270270
Runs a command from the plugin menu.
271271
Use to run direct commands from the Plugins menu.
@@ -288,60 +288,60 @@ Notepad++ Object
288288
notepad.runPluginCommand('XML Tools', 'Pretty Print (XML only)')
289289
290290

291-
.. method:: Notepad.save()
291+
.. method:: notepad.save()
292292

293293
Save the current file
294294

295-
.. method:: Notepad.saveAllFiles()
295+
.. method:: notepad.saveAllFiles()
296296

297297
Saves all currently unsaved files
298298

299-
.. method:: Notepad.saveAs(filename)
299+
.. method:: notepad.saveAs(filename)
300300

301301
Save the current file as the specified filename
302302

303303
*Only works in Notepad++ 5.7 onwards*
304304

305305

306-
.. method:: Notepad.saveAsCopy(filename)
306+
.. method:: notepad.saveAsCopy(filename)
307307

308308
Save the current file as the specified filename, but don't change the filename for the buffer in Notepad++
309309

310310
*Only works in Notepad++ 5.7 onwards*
311311

312312

313-
.. method:: Notepad.saveCurrentSession(filename)
313+
.. method:: notepad.saveCurrentSession(filename)
314314

315315
Save the current session (list of open files) to a file.
316316

317317

318-
.. method:: Notepad.saveSession(filename, filesList)
318+
.. method:: notepad.saveSession(filename, filesList)
319319

320320
Saves a session file with the list of filenames.
321321

322322

323-
.. method:: Notepad.setCurrentLang(langType)
323+
.. method:: notepad.setCurrentLang(langType)
324324

325325

326326
Set the language type of the currently active buffer (see :class:`LANGTYPE`)
327327

328328

329-
.. method:: Notepad.setFormatType(formatType[, bufferID])
329+
.. method:: notepad.setFormatType(formatType[, bufferID])
330330

331331
Sets the format type (i.e. Windows, Unix or Mac) of the specified buffer ID.
332332
If not bufferID is passed, then the format type of the currently active buffer is set.
333333

334334

335-
.. method:: Notepad.setLangType(langType[, bufferID])
335+
.. method:: notepad.setLangType(langType[, bufferID])
336336

337337
Sets the language type of the given *bufferID*. If not bufferID is given, sets the language for the currently active buffer.
338338

339339

340-
.. method:: Notepad.setStatusBar(statusBarSection, text)
340+
.. method:: notepad.setStatusBar(statusBarSection, text)
341341

342342
Sets the status bar text. For statusBarSection, use one of the :class:`STATUSBARSECTION` constants.
343343

344-
.. method:: Notepad.showTabBar()
344+
.. method:: notepad.showTabBar()
345345

346346
Shows the Tab bar
347347

0 commit comments

Comments
 (0)