Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    sublime text for pyp. [SOLVED]

    Scheduled Pinned Locked Moved PYTHON Development
    4 Posts 0 Posters 405 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      On 21/06/2015 at 10:17, xxxxxxxx wrote:

      Hi guys. I was using eclipse for c4d python plugin development but i want to use sublime text now. 
      Here's the problem:
      Sublime text dosnt recognize .pyp file as python files. Like if we write import c4d, the import is not colored as would generally a python file would. how do i make sublime text understand that .pyp is same as .py and all color highlighting is there in .pyp also.

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        On 21/06/2015 at 11:00, xxxxxxxx wrote:

        man....i have been so silly. One just needs to change the language given at lower right corner to python and syntax highlighting starts.

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          On 29/06/2015 at 03:34, xxxxxxxx wrote:

          Hi,
          if you want to have .pyp files automatically highlighted within Sublime Text, go to the following directory:
          <user>/AppData/Roaming/Sublime Text 2/Packages/Python
          There you find Python.tmLanguage
          Within this file almost at the beginning (here at line 13) there should be section like this:

          <key>fileTypes</key>
          <array>
            <string>py</string>
            <string>rpy</string>
            <string>pyw</string>
            <string>cpy</string>
            <string>SConstruct</string>
            <string>Sconstruct</string>
            <string>sconstruct</string>
            <string>SConscript</string>
          </array>
          

          Simply add a the following line in there:

            <string>pyp</string>
          
          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            On 03/07/2015 at 10:47, xxxxxxxx wrote:

            Thanks!

            1 Reply Last reply Reply Quote 0
            • First post
              Last post