I would look at setedit's code as SET implemented syntax color highlighting for TV (djgpp, however). See [0].
[0] http://setedit.cvs.sourceforge.net/viewvc/setedit/setedit/ On Mon, Apr 13, 2015 at 8:41 AM, Antony Gordon <[email protected]> wrote: > Jayden, I don't know if you have used Windows (I'm sure you have), but my > program is essentially a DOS version of the System Configuration Editor that > came with Windows 3.x. I wrote this program using TV on Turbo Pascal when I > was working at CompUSA and customers would butcher Windows to the point of > not booting. The program opened all the files at once so I could look at > them all easily to see what was messed up. > > At the time, the basic functionality was all I needed, so I didn't delve > into the program more. Releasing it to the FreeDOS community in it's current > form will probably get comments around the fact that it is a basic Turbo > Vision app and I didn't do "anything". > > I am looking for some examples on how to extend the Turbo Vision Editor (or > FileEditor) object to include syntax highlighting. So far, I haven't been > fruitful in my search. > > > > On Mon, Apr 13, 2015 at 10:28 AM JAYDEN CHARBONNEAU > <[email protected]> wrote: >> >> Editing configuration files is pretty straight forward when it comes to >> DOS,but,a GUI is nice.For syntax highlighting,I would do the following: >> Have a few default structures.Like "<function>=[option]" or <function> >> <command> [options] >> So when the user (I am not sure how your program works,so bear with me) >> types a FDCONFIG.SYS line,the program changes the text colors corresponding >> with the different values.The general syntax for FDCONFIG.SYS is >> "<function>=[option]".As for editing the AUTOEXEC.BAT file,it is basically a >> batch file,save the fact that it runs at the start.So if the user types "LH >> <program/exectuable",the function (LH) should be a specific color,and the >> option (executable) should be another.It is a matter of changing the colors >> of preset functions,using a general syntax.I hope this helps,as I have not >> programmed FreeDOS in at least a month/month and a half now. >> -Jayden >> >> >> On Sat, Apr 11, 2015 at 11:55 AM, Antony Gordon <[email protected]> >> wrote: >>> >>> I've dug up an old program that I used when I was a PC tech to edit >>> configuration files (AUTOEXEC.BAT, CONFIG.SYS, and the assortment of >>> Windows 3.x config files). >>> >>> It's written in (Turbo) Pascal. Jim suggested I add syntax highlighting >>> and features from MEM to it. I need some pointers on the syntax >>> highlighting, however do you think this is good feature to have or tool? >>> >>> I'm open to suggestions for this. >>> >>> >>> >>> ------------------------------------------------------------------------------ >>> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT >>> Develop your own process in accordance with the BPMN 2 standard >>> Learn Process modeling best practices with Bonita BPM through live >>> exercises >>> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- >>> event?utm_ >>> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF >>> _______________________________________________ >>> Freedos-devel mailing list >>> [email protected] >>> https://lists.sourceforge.net/lists/listinfo/freedos-devel >>> >> >> >> ------------------------------------------------------------------------------ >> BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT >> Develop your own process in accordance with the BPMN 2 standard >> Learn Process modeling best practices with Bonita BPM through live >> exercises >> http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- >> event?utm_ >> >> source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF_______________________________________________ >> Freedos-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/freedos-devel > > > ------------------------------------------------------------------------------ > BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT > Develop your own process in accordance with the BPMN 2 standard > Learn Process modeling best practices with Bonita BPM through live exercises > http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ > source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF > _______________________________________________ > Freedos-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/freedos-devel > ------------------------------------------------------------------------------ BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT Develop your own process in accordance with the BPMN 2 standard Learn Process modeling best practices with Bonita BPM through live exercises http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_ source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF _______________________________________________ Freedos-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freedos-devel
