New Features in Maple 2018 - Code Editor - Maplesoft

What's New in Maple 2018

Code Editor

Many substantial improvements to code editing tools in Maple 2018 make it easier to write, debug, and maintain your code.

Coding in Maple 

  • The code analysis tool, mint, is now incorporated into Maple's code editing tools, where it automatically provides information about programming issues that go well beyond syntax errors.  This tool provides information that assists with both debugging and code maintenance, such as parameter naming conflicts, unreachable code, unused parameters or variables, and more.

  • Command completion is displayed automatically as you type, making it faster to enter function names and eliminating problems due to misspelled names. 



    These changes are available in both the code editor, which is used for start-up code and defining the behavior of interactive components such as buttons and sliders, and in code edit regions, which are used to incorporate blocks of code inside your document. 


    Code Editor 


    The code editor also includes additional enhancements that improve your workflow: 

  • A new console window at the bottom of the code editor makes it possible to test the startup code from directly inside the code editor.
  • The code editor automatically displays command completion lists.
  • Errors are now shown inline and the code editor displays a notification strip for errors in the scroll bar on the right side of the window.  
  • Automatic text wrapping improves readability.  
  • Menu items were added for cut, copy, paste, undo, and redo.  


    Code Edit Regions 

    Embedded component


    Additional improvements to the code edit regions include:

  • Visual updates include the code edit region's width automatically fits the entire window.
  • It is now possible to cursor into and out of code edit regions. Previously the only way to enter a code edit region was using the mouse.