It is currently Tue Aug 04, 2020 9:12 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 58 posts ]  Go to page 1, 2, 3, 4  Next
Author Message
 Post subject: Notepad++ language template for PureBasic?
PostPosted: Thu Feb 11, 2010 11:02 pm 
Offline
Addict
Addict

Joined: Sat Jun 30, 2007 8:04 pm
Posts: 3366
Does anyone know if one of these exist? :?


Top
 Profile  
Reply with quote  
 Post subject: Re: Notepad++ language template for PureBasic?
PostPosted: Fri Feb 12, 2010 12:07 am 
Offline
Addict
Addict
User avatar

Joined: Tue Aug 11, 2009 1:56 pm
Posts: 858
Location: Essen (Germany)
Hi Mistrel,

if you like to get mine - you're wellcome :) and everybody who is interrested too

userDefineLang-PB440.xml
userDefineLang-PB450.xml
Note: the Highlighting PB-4.50 still is actual, as no new functions have been added to PB 4.51!

greetings ~ Vera

_________________
Two growing code-collections: WinApi-Lib by RSBasic ~ LinuxAPI-Lib by Omi

Missing a download-file on the forums? ~ check out this backup page.


Last edited by Vera on Mon Dec 20, 2010 10:19 pm, edited 3 times in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Notepad++ language template for PureBasic?
PostPosted: Fri Feb 12, 2010 4:16 am 
Offline
Addict
Addict

Joined: Sat Jun 30, 2007 8:04 pm
Posts: 3366
Great! Now how do I install it? :?

I'm using Notepad++ 5.6.6.

I've found different solutions on the internet but none of them work. I don't know if something has changed in this more recent version that requires modification.


Top
 Profile  
Reply with quote  
 Post subject: Re: Notepad++ language template for PureBasic?
PostPosted: Fri Feb 12, 2010 10:19 am 
Offline
PureBasic Expert
PureBasic Expert

Joined: Sun Apr 12, 2009 6:27 am
Posts: 3652
@Mistrel
I presume you are running Win 7

1- Rename userDefineLang-PB440.xml To userDefineLang.xml
2- Copy it To c:\users\Mistrel\AppData\Roaming\Notepad++ (If your user name is Mistrel)

You will find PureBasic listed at the End

_________________
Egypt my love


Top
 Profile  
Reply with quote  
 Post subject: Re: Notepad++ language template for PureBasic?
PostPosted: Fri Feb 12, 2010 11:34 am 
Offline
Addict
Addict
User avatar

Joined: Tue Aug 11, 2009 1:56 pm
Posts: 858
Location: Essen (Germany)
Hello Mistrel,

I thought you were familiar with the userDefineLang.xml ;)
In case you use a portable version of Notepad++ it's placed in the appfolder itself.

You can have several user-languages if you like and they are all within this file, surrounded by
Quote:
<NotepadPlus>
<UserLang>
one language
</UserLang>

<UserLang>
another language
</UserLang>

</NotepadPlus>
and appear in the editors language-list (very bottom).

You can customize it via implemented GUI (menu View\Custom..dialoge) or directly in a simple editor. (hint - it makes no difference if you use Ansi or Uni-version - the xml works with both, and up to v. 5.6.6).

As for my version I tried to make it look similar to the IDEs standard settings and changing it you'd like to know the following:
- if you like to apply more word-pairs to the codefolding, take them out of the second wordgroup and place them in the fold+ / fold- group - they mustnot appear in both groups
- the round () braces have to stay in the active operatorgroup otherwise the functions don't highlight
- in the 3. wordgroup (besides three activ commands I prefer in this color) I placed those 10 commands that have been removed on update form v.4.31 to v.4.40. If you don't want them to be highlighted differently move them to the 2nd wordgroup and than may use this 3rd group for e.g. M$ commands or whatever you fancy :)

Well - nothing can beat the IDEs-Highlighting - still one needs an external editor now and again ;)

cheers ~ Vera

edit: update and correction

_________________
Two growing code-collections: WinApi-Lib by RSBasic ~ LinuxAPI-Lib by Omi

Missing a download-file on the forums? ~ check out this backup page.


Last edited by Vera on Fri Feb 12, 2010 4:06 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: Notepad++ language template for PureBasic?
PostPosted: Fri Feb 12, 2010 2:03 pm 
Offline
Addict
Addict
User avatar

Joined: Fri Jul 02, 2004 6:49 pm
Posts: 853
Location: Australia
Thanks very much for this Vera. :)
I have been using Scite for a while but I think I might switch to this Notepad++ now using your little xml addition. I will just have to teach myself a little xml so I can make it match the 'C' code colorings.


Top
 Profile  
Reply with quote  
 Post subject: Re: Notepad++ language template for PureBasic?
PostPosted: Sat Feb 13, 2010 10:34 am 
Offline
Addict
Addict

Joined: Sat Jun 30, 2007 8:04 pm
Posts: 3366
Is there a way to make this compatible with the global font and color style? The one in the file seems to override the global one.

If I remove the fgColor and bgColor attributes from the file then the text foreground and background become black.


Top
 Profile  
Reply with quote  
 Post subject: Re: Notepad++ language template for PureBasic?
PostPosted: Sat Feb 13, 2010 1:41 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Aug 11, 2009 1:56 pm
Posts: 858
Location: Essen (Germany)
Hi Mistrel

seems you got it working all right now :)
Mistrel wrote:
Is there a way to make this compatible with the global font and color style? The one in the file seems to override the global one.
This pb-styler does not define any own font and uses the global one. It only sets some bolds and sizes.
Under Settings\Stylerconfigration: GlobalStyle + globalOverwrite you could set global font settings for all, but here only enable the bgcolor if you wish one color for all filetypes. Enabling the fgcolor etc. will 'destroy' any highlighting.
Under GlobalStyle + defaultStyle you set the global font etc. that will be used as long as a language-setting does not define something else.

Mistrel wrote:
If I remove the fgColor and bgColor attributes from the file then the text foreground and background become black.
Same here - I don't think it's a good idea to remove values from a configuration file, you'll just corrupt it ;)
Better than use the View\Custom..dialog if you want to change/remove the determined colorings.

I hope this helped you


Hi Baldrick

thanks for your reply :)
I too use Scite and think it's a very reliable and solid editor and am very glad it runs on Linux. Besides it's kind of rigid whereas NPP++ is much more flexible and brings along a lot of handy tools (plugins)

greetings ~ Vera

_________________
Two growing code-collections: WinApi-Lib by RSBasic ~ LinuxAPI-Lib by Omi

Missing a download-file on the forums? ~ check out this backup page.


Top
 Profile  
Reply with quote  
 Post subject: Re: Notepad++ language template for PureBasic?
PostPosted: Sat Feb 13, 2010 9:00 pm 
Offline
Addict
Addict

Joined: Sat Jun 30, 2007 8:04 pm
Posts: 3366
Thank you for the style configuration and for your help, vera.

From what I understand it's not possible to override the foreground fonts to respect the global color theme so I'll have to edit these myself. I can live with that. :)


Top
 Profile  
Reply with quote  
 Post subject: Re: Notepad++ language template for PureBasic?
PostPosted: Sun Feb 14, 2010 2:10 am 
Offline
PureBasic Expert
PureBasic Expert

Joined: Sun Apr 12, 2009 6:27 am
Posts: 3652
@Mistrel
You can change anything you like For PureBasic spec file As follows :
1- Start notepad++ v5.6.6
2- Goto View-->User-Defined Dialugue
3- User Language : PureBasic
4- Change anything you like (Font name - Font Size - Color ......) Or add keywords Or ....
5- Close the dialogue (Just close it nothing more)
6- Close Notepad++
7- StartNotePad++ again And choose PureBasic from Language

Have fun

_________________
Egypt my love


Top
 Profile  
Reply with quote  
 Post subject: Re: Notepad++ language template for PureBasic?
PostPosted: Sun Feb 14, 2010 2:37 am 
Offline
Addict
Addict

Joined: Sat Jun 30, 2007 8:04 pm
Posts: 3366
This is true but if I decide to change the global style I have to edit every user defined language to match it. Hence why having it match the global style automatically is preferred.


Top
 Profile  
Reply with quote  
 Post subject: Re: Notepad++ language template for PureBasic?
PostPosted: Fri Apr 02, 2010 4:03 pm 
Offline
Addict
Addict
User avatar

Joined: Tue Aug 11, 2009 1:56 pm
Posts: 858
Location: Essen (Germany)
Hello,

just a small note : you can find the userDefineLang updated to PB 4.50 above.

greetings ~ Vera

_________________
Two growing code-collections: WinApi-Lib by RSBasic ~ LinuxAPI-Lib by Omi

Missing a download-file on the forums? ~ check out this backup page.


Top
 Profile  
Reply with quote  
 Post subject: Re: Notepad++ language template for PureBasic?
PostPosted: Wed Sep 01, 2010 4:27 pm 
Offline
Always Here
Always Here

Joined: Fri Oct 23, 2009 2:33 am
Posts: 6254
Location: Wales, UK
Excellent stuff Vera.

For NotePad++ v5.7, you can save a PB syntax highlight file in the NotePad++ Folder as a 'stand alone' file and this will then be listed in the NotePad++ Language list as 'Pure Basic' rather than as 'User Defined'.

If anyone likes to have their syntax highlighted in very badly chosen colours, then this is for you:

http://www.professorcad.co.uk/PB_Stuff/Pure_Basic_Syntax_Highlight.zip

Just un-zip it in the NotePad++ folder.

I actually use UltraEdit on my main PC, NotePad++ on the laptop. I think both are a bit easier to use than PB's IDE. UltraEdit is particularly nice because of it's fabulous column mode editing.

_________________
IdeasVacuum
If it sounds simple, you have not grasped the complexity.


Top
 Profile  
Reply with quote  
 Post subject: Re: Notepad++ language template for PureBasic?
PostPosted: Wed Sep 01, 2010 4:30 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Fri Apr 25, 2003 4:51 pm
Posts: 2808
Location: Portugal, Lisbon
Vera wrote:
Hi Mistrel,

if you like to get mine - you're wellcome :) and everybody who is interrested too

greetings ~ Vera


[evil]

Is it my twisted sick mind, or when you write it like that it sounds... erhmmm kinky :twisted: :twisted:

[\evil]

_________________
Software: http://xipa.org
Elevator Maintenance: http://central-elevadores.pt
Good web hosting!


Top
 Profile  
Reply with quote  
 Post subject: Re: Notepad++ language template for PureBasic?
PostPosted: Fri Sep 03, 2010 9:43 pm 
Offline
PureBasic Expert
PureBasic Expert
User avatar

Joined: Sat May 17, 2003 11:31 am
Posts: 6073
We love kinky. All of us :twisted:

_________________
( PB5.xx Win10 x64 Asrock AB350 Pro4 Ryzen 1600X 32GB RAM Evo 840 GTX1060 )
( The path to enlightenment and the PureBasic Survival Guide right here... )


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 58 posts ]  Go to page 1, 2, 3, 4  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 5 guests


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

Search for:
Jump to:  
cron

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye