Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    MultiLineEditText Documentation

    Cinema 4D SDK
    python
    2
    3
    343
    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.
    • ?
      A Former User
      last edited by A Former User

      Hello,
      I'm using Python Syntax Highlighting with a GeDialog MultiLineEditText. In order to make this work, I have to pass c4d.DR_MULTILINE_PYTHON | c4d.DR_MULTILINE_SYNTAXCOLOR as the style's Symbol IDs. This was not clear from the documentation which describes DR_MULTILINE_SYNTAXCOLOR as C.O.F.F.E.E. syntax highlighting.

      It took me some time to figure out that DR_MULTILINE_PYTHON does not work on its own and that DR_MULTILINE_SYNTAXCOLOR is not strictly for C.O.F.F.E.E.. Could you please explain this better in the documentation?

      Thank you.

      1 Reply Last reply Reply Quote 0
      • M
        m_adam
        last edited by

        Sorry for the late reply, I thought I answered while not.

        The next documentation will be fixed:

        • DR_MULTILINE_SYNTAXCOLOR enables syntax color, coffee, or Python. Since coffee is removed it only helps for the Python Highlighting.
        • DR_MULTILINE_PYTHON enables specific python line return handling e.g. writing def Something():, pressing enter will put the caret (text cursor) to a new line and indent it to match python syntax rule.

        Cheers,
        Maxime.

        MAXON SDK Specialist

        Development Blog, MAXON Registered Developer

        ? 1 Reply Last reply Reply Quote 1
        • ?
          A Former User @m_adam
          last edited by

          @m_adam Thank you for the update, Maxime!

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