SciTE

Ren'Py settings for SciTE 2.0.3+

With a minimal change, SciTE's Python lexer can be used for formatting of Ren'Py scripts. The property settings below can be used to configure SciTE 2.x to better deal with Ren'Py. Note, however, that properties in SciTE are global, and not per-buffer; if you're switching between Python and Ren'Py files, you'll need to write some Lua code to handle swapping property values whenever tabs are changed and files opened.

  1. # Define SciTE settings for Ren'Py files.
  2.  
  3. file.patterns.rpy=*.rpy;*.rpym
  4.  
  5. shbang.renpy=rpy
  6.  
  7. filter.renpy=Ren'Py (rpy rpym)|$(file.patterns.rpy)|
  8.  
  9. lexer.$(file.patterns.rpy)=python
  10. lexer.renpy.strings.over.newline=1
  11.  
  12. keywordclass.renpy=at call expression hide image init jump label menu \
  13. onlayer python scene set show with \
  14. and assert break class continue def del elif \
  15. else except exec finally for from global if import in is lambda None \
  16. not or pass print raise return try while yield $ \
  17. play queue stop sound music fadeout fadein channel \
  18. voice sustain nvl clear window
  19.  
  20. k
Syndicate content