Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Fri Dec 22, 2006 4:04 pm   

Editor Differences from Zmud with formatting
 
In ZMud the editor formatted the text. Is there a similar option in CMud or has that been removed?
Reply with quote
Larkin
Wizard


Joined: 25 Mar 2003
Posts: 1113
Location: USA

PostPosted: Fri Dec 22, 2006 5:26 pm   
 
There is a syntax check function and a dynamic syntax highlighter option, but there is no auto-indenter.
Reply with quote
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Fri Dec 22, 2006 6:28 pm   
 
I'm curious as to how other people are handling this. Converting the actual incompatible code is easy compared to daunting task of untangling the mass of conjoined code it is in CMud.

All my code in CMud is just one big long line, separating it out into something readable to taking way way too much time. I'm even considering whether I can manually copy and paste it over from the formatted ZMud to make it easier.

Anyone have a better solution?
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Fri Dec 22, 2006 6:37 pm   
 
The problem is that the code always was one long line - zMUD just made it look nicer. In CMUD a new line in the editor actually does something. You'd most likely need to change at least some of your pretty-printed code to have it work as you'd expect. I had some issues with that - the scripts that I'm not rewriting entirely (which is most of them) I'm spacing manually to avoid it.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Fri Dec 22, 2006 6:50 pm   
 
So the best known method is just to go though manually and make it readable?

I'm just dumbfounded by how much time that is going to take.
Reply with quote
Ceres
Wanderer


Joined: 25 May 2006
Posts: 88

PostPosted: Sat Dec 23, 2006 12:10 am   
 
The easiest way I have found is to have zMud an CMUD open at the same time and simply paste the indented scripts into CMUD whilst creating aliases, variables and triggers manually. Not quick but at least that way you can modify the zscript to cscript at the same time whilst retaining some form of readability.
Reply with quote
ReedN
Wizard


Joined: 04 Jan 2006
Posts: 1279
Location: Portland, Oregon

PostPosted: Sat Dec 23, 2006 12:15 am   
 
Cool, I was thinking that might work, I'll go that route.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net