Adding Indentations in Maple for Organized Code | Step-by-Step Guide

  • Context: Maple 
  • Thread starter Thread starter Dragonfall
  • Start date Start date
  • Tags Tags
    Maple
Click For Summary

Discussion Overview

The discussion revolves around how to add indentations or tabs in Maple programming to organize code effectively. Participants explore various methods and tools related to formatting code within the Maple environment.

Discussion Character

  • Technical explanation, Debate/contested, Conceptual clarification

Main Points Raised

  • One participant inquires about how to add a "tab" in Maple, noting that pressing tab skips to the next section instead of inserting an indentation.
  • Another participant suggests that there might be an "Insert -> Tab" option in Maple, but also advises against programming in Maple due to perceived poor debugging tools.
  • A different participant mentions the necessity of implementing Kalai's random integer algorithm in Maple, stating that the "insert tab" function does not work as expected and instead applies to the entire section.
  • Another contribution questions whether Maple accepts input from a text file and suggests that editing code in a text editor before pasting it into Maple could be a workaround. They also propose using spaces as an alternative for indentation.

Areas of Agreement / Disagreement

The discussion reflects multiple competing views on how to handle indentation in Maple, with no consensus on a definitive solution or method.

Contextual Notes

Participants express uncertainty about the functionality of Maple's features and the limitations of its debugging tools. There are also assumptions about the usability of external text editors and their compatibility with Maple.

Dragonfall
Messages
1,023
Reaction score
5
"tab" in maple

How do you add a "tab" (indentation) in maple? If I press tab it skips to the next section.

I want to do something like:
Code:
if blah then
       blah
end if
 
Physics news on Phys.org


I don't have Maple on my computer that I have now, but I would think there might be a Insert -> Tab or something like that.

Note: If you can avoid to do programming in Maple, do so. The debugging tools on Maple are garbage.
 


No choice, I have to implement Kalai's random integer algorithm IN maple.

the "insert tab" thing does not insert a tab. Rather it inserts a tab for the entire section.
 


Doesn't maple accept input from a text file? There are probably even xemacs packages for prettifying maple code.

Even if it doesn't... you could still edit the code in your text editor, then paste into your maple session, couldn't you?

(BTW, have you tried using spaces?)
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 4 ·
Replies
4
Views
5K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 39 ·
2
Replies
39
Views
9K
  • · Replies 1 ·
Replies
1
Views
5K
  • · Replies 5 ·
Replies
5
Views
8K
  • · Replies 5 ·
Replies
5
Views
2K