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 Tue 21 Oct 2014, 20:31
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 Posts_count  
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_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:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Off-Topic Area » Programming
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0613s ][ Queries: 12 (0.0109s) ][ GZIP on ]