Jump to content

TUniSyntaxEdit and auto indentation


mika

Recommended Posts

Is it possible to enable auto indentation in TUniSyntaxEdit? Out software relies heavily on scripts and writing scripts is more difficult and time consuming because user has to manually indent code. We don't need any "smart" features but basic identation so that caret will be positioned at same column as previous line when user presses enter.

Link to comment
Share on other sites

I'm using pascal as script language.

 

Consider this example:

begin
  ShowMessage('Test'); // When pressing enter here, caret will go...
|...here
  |...instead of here
end.

I hope you understand what i'm trying to say here. I'm not very good at explaining this :P Sorry.

Link to comment
Share on other sites

Hi,

 

Have you tried to use UniSyntaxEditEx too ?!

 

Best regards,

 

No I haven't. I didn't realise that there is another control to use.

 

I tried it but i get an error:

 

 

Mismatched anonymous define() module: [object Object] http://requirejs.org/docs/errors.html#mismatch

 

 

I haven't updated uniGUI for the past month or two so it might be something that would correct itself by updating. I'll try to solve this tomorrow morning.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...