Syntax Templates - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Syntax Templates

Syntax Templates for Code Editing

Syntax templates are available in the Code Editor for automatic completion of certain common programming tasks, such as if statements. The following tables outline the available templates for Maple and Modelica syntax and how to invoke them. Note that for the entries in the To Insert... column in each table, the pipe character (|) represents the position of the cursor after the template has been inserted.  For more general information on the Code Editor, see Code Edit Region.


Note: On Mac, use Command + Shift + Space for these templates.

 

Syntax Templates for Maple Programming Language

Syntax Templates for Modelica Programming Language

Syntax Templates for Maple Programming Language

The following syntax templates are available in the code editor.

To insert...

Type this...

if  |  then

    

     end if:

"if" followed by Ctrl + Shift + Space

if  | then

     

else

         

end if:

"ife" followed by Ctrl + Shift + Space

proc( | )

end proc:

"proc" followed by Ctrl + Shift + Space

module()

           export |

end module:

"module" followed by Ctrl + Shift + Space

Syntax Templates for Modelica Programming Language

If you have MapleSim installed and have set the language for your code edit region to the Modelica programming language, the following syntax templates are available.

To insert...

Type this...

block  |

 

protected

             

equation

                 

end ___;

"block" followed by Ctrl + Shift + Space

model  |

        

protected

  

equation

                        

end ___;

"model" followed by Ctrl + Shift + Space

function  |

        

protected

   

algorithm

   

end ___;

"function" followed by Ctrl + Shift + Space

connector  |

     

end ___;

"connector" followed by Ctrl + Shift + Space

package  |

   

end ___;

"package" followed by Ctrl + Shift + Space

record  |  

 

end ___;

"record" followed by Ctrl + Shift + Space

for  |  loop

 

end for;

"for" followed by Ctrl + Shift + Space

if  |  then

 

end if;

"if" followed by Ctrl + Shift + Space

if  |  then

 

else

 

end if;

"ife" followed by Ctrl + Shift + Space

if  |  then

 

elseif ___ then

           

else

 

end if;

"ifei" followed by Ctrl + Shift + Space

when  |  then

  

end  when;

"when" followed by Ctrl + Shift + Space

when  |  then

 

elsewhen ___  then

   

end when;

"whene" followed by Ctrl + Shift + Space

while  |  loop..

 

end while;

"while" followed by Ctrl + Shift + Space

loop

      |

end loop;

"loop" followed by Ctrl + Shift + Space

See Also

CodeEditRegion

if

module

proc