Skip to content

Commit

Permalink
#330 Wrap text in console
Browse files Browse the repository at this point in the history
Added sample code from issue as script
  • Loading branch information
chcg committed May 1, 2024
1 parent 0faef87 commit 05c7443
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions scripts/Samples/UserStartupWrapConsole.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# -*- coding: utf-8 -*-
# From https://github.com/bruderstein/PythonScript/issues/330
# Wrap text in console pythonscript window by putting the following (or an adapted version) in user startup.py:


console.editor.setWrapMode(WRAP.WORD)
console.editor.setWrapIndentMode(WRAPINDENTMODE.SAME)
console.editor.setWrapStartIndent(0)
console.editor.setWrapVisualFlags(WRAPVISUALFLAG.END)

console.editor.setWrapVisualFlagsLocation(WRAPVISUALLOCATION.END_BY_TEXT)

0 comments on commit 05c7443

Please sign in to comment.