Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 23 Nov 2014, 17:15
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Adding a programming language into Beaver Text editor.
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [7 Posts]  
Author Message
flamesage


Joined: 01 Jul 2005
Posts: 214

PostPosted: Wed 06 Jul 2005, 19:13    Post subject:  Adding a programming language into Beaver Text editor.  

How would I do it?
(example: in C++ mode if I type in if it lights up in blue, how would I create my own "Language")
Back to top
View user's profile Send private message 
Ian
Official Dog Handler


Joined: 04 May 2005
Posts: 1237
Location: Queensland

PostPosted: Wed 06 Jul 2005, 19:27    Post subject:  

Do you mean a programming language or just changing the color of the highlights.
Back to top
View user's profile Send private message 
flamesage


Joined: 01 Jul 2005
Posts: 214

PostPosted: Wed 06 Jul 2005, 19:36    Post subject:  

an actual language.
Back to top
View user's profile Send private message 
flamesage


Joined: 01 Jul 2005
Posts: 214

PostPosted: Wed 06 Jul 2005, 19:37    Post subject:  

an actual programing language.

You see, theres this programing language claled DM
and since thres no linux compiler, I have to use Beaver text.
Back to top
View user's profile Send private message 
Ian
Official Dog Handler


Joined: 04 May 2005
Posts: 1237
Location: Queensland

PostPosted: Wed 06 Jul 2005, 21:05    Post subject:  

If there is no Linux compiler how are you going to compile it.
Back to top
View user's profile Send private message 
rarsa


Joined: 29 May 2005
Posts: 3053
Location: Kitchener, Ontario, Canada

PostPosted: Wed 06 Jul 2005, 21:21    Post subject:  

I think that you mean 'How do I define a syntaxt higlighting schema to Beaver?'. Is this correct?

Because you don't 'add a language' to an editor, unless you mean to add a script language to perform tasks inside the editor (like VBA in word). Beaver 0.3.1 has a macro language, I don't think 0.2.7 has one.

The editor and the compiler have NOTHING to do, except that you can edit the source files in the editor and some editors can be configured to work as development environments.

So assuming that you mean syntaxt highlighting:

I went to the official beaver page downloaded the source package and got the following information:

According to the Beaver 0.2.7 README file:
Quote:

CURRENT FEATURES
----------------

- Syntax highlighting | All theses features are
- Automatic indentation \ configurable via a file
- Automatic completion / 100% compatible with
- Automatic case-correction | UltraEdit wordfile.txt's
- Languages supported by the default wordfile.txt provided:
C/C++, HTML, JavaScript, Perl, PHP and Bash
- You can choose your syntax highlighting mode
- Multiple documents management
- Preferences interface (you can also edit the config files, which are
intended to be very clear, if you want)
- Languages menus that can be created by users, through '.bl' files
- Recent documents menu
- Search & Replace capabilities
- A command line that works fine
- File informations window
- Read only mode
- Print function
- Popup Document list
- Menu accelerators that work
- Save window size
- Other configurable options: toolbar, document tabs, etc.
- A base converter
- A nice Color picker
- Lots of surprises


This means that you have to edit the following file:
/root/.beaver/wordfile.txt

I think once you see how the syntax highlighting is defined for the other languages, you will be able to figure out how to do it for the DM language. If not, Look into the UltraEdit documentation. UltraEdit is quite popular and I'm sure that you will find enough information by Googling.

If you actually want to create your own language, you will most likely have to compile the compiler in an existing language.
Back to top
View user's profile Send private message Visit poster's website 
flamesage


Joined: 01 Jul 2005
Posts: 214

PostPosted: Wed 06 Jul 2005, 23:57    Post subject:  

Ok, thats just what I wanted thanks rarsa!
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [7 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0507s ][ Queries: 11 (0.0049s) ][ GZIP on ]