Skip to content

Commit 05c7443

Browse files
committed
bruderstein#330 Wrap text in console
Added sample code from issue as script
1 parent 0faef87 commit 05c7443

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# -*- coding: utf-8 -*-
2+
# From https://github.com/bruderstein/PythonScript/issues/330
3+
# Wrap text in console pythonscript window by putting the following (or an adapted version) in user startup.py:
4+
5+
6+
console.editor.setWrapMode(WRAP.WORD)
7+
console.editor.setWrapIndentMode(WRAPINDENTMODE.SAME)
8+
console.editor.setWrapStartIndent(0)
9+
console.editor.setWrapVisualFlags(WRAPVISUALFLAG.END)
10+
11+
console.editor.setWrapVisualFlagsLocation(WRAPVISUALLOCATION.END_BY_TEXT)

0 commit comments

Comments
 (0)