User Tag List

Results 1 to 8 of 8

Thread: MMF Code Editor

  1. #1
    Clicker Fusion 2.5 DeveloperSWF Export ModuleInstall Creator Pro

    Join Date
    Jun 2006
    Location
    France
    Posts
    1,266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    MMF Code Editor

    Greetings,

    This is not an example, but a request for the source or a new example, where is demonstrated how to have a formatted code editor using the RTF object.

    For example, code = black, functions are purple, //comments */ are orange or grey, etc...
    Maybe also allowing tabbing and such.

    However, on saving, it should only return the code, not the markup, and when loading, it should load the text, then format it.
    I think you would need a format function todo this.

    I have seen some HTML editor, im really really curious how this is done, and if anyone would be so generous to share this or refer me to an example i apearently could not find myself, that would really be apreceated.

    Thanks!

  2. #2
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: MMF Code Editor

    Consider using a Scintilla ActiveX.

  3. #3
    Clicker Fusion 2.5 DeveloperSWF Export ModuleInstall Creator Pro

    Join Date
    Jun 2006
    Location
    France
    Posts
    1,266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: MMF Code Editor

    yes Scintilla owns. unfortunatly i doubt the use of ActiveX controls would do the editor any good.

  4. #4
    Clicker Multimedia Fusion 2 DeveloperiOS Export Module

    Join Date
    Jun 2006
    Posts
    375
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: MMF Code Editor

    It could be a very useful (multi) widget.

    Edit: Bah. I'm not getting far with it.

  5. #5
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: MMF Code Editor

    I've already release an example to do that for MMF2Dev by using the regex object.

    I'll search it...

    EDIT: I've found it: Code colorization

  6. #6
    Clicker Fusion 2.5 DeveloperSWF Export ModuleInstall Creator Pro

    Join Date
    Jun 2006
    Location
    France
    Posts
    1,266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: MMF Code Editor

    oui, thats cool, but its bugged. When you backspace or delete it keeps the formatting. Also it flashes terribly. But thanks for the input. It is a good start.

  7. #7
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export Module
    Sphax's Avatar
    Join Date
    Jun 2006
    Location
    Paris, France
    Posts
    4,454
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: MMF Code Editor

    Quote Originally Posted by Patrick
    oui, thats cool, but its bugged. When you backspace or delete it keeps the formatting. Also it flashes terribly. But thanks for the input. It is a good start.
    Yes I know it flashes terribly but there is no other solution against it...
    But if you update it a little you'll be able to prevent the color bug when deleting.

  8. #8
    Clicker Fusion 2.5 DeveloperSWF Export ModuleInstall Creator Pro

    Join Date
    Jun 2006
    Location
    France
    Posts
    1,266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: MMF Code Editor

    The flashing may be reduced by only checking if text is entered.
    Honestly, i wonder how this script does with 1.000 lines of code.

Similar Threads

  1. Level editor that uses MMF2's own frame editor
    By Shawn in forum File Archive
    Replies: 35
    Last Post: 9th November 2013, 06:34 PM
  2. Creating a code editor?
    By JGooler in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 12th December 2009, 10:23 AM
  3. Open Frame Editor and Event Editor at same time
    By juanjo in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 20th April 2008, 05:53 PM
  4. V-Code Generator Source Code
    By LB in forum File Archive
    Replies: 1
    Last Post: 10th March 2008, 08:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •