PDA

View Full Version : DataFlex support in Notepad++



Marco
2-Feb-2009, 02:16 AM
Hi Guys,

Notepad++ is a very good open source text editor. The project is
maintained on Source Forge and has been downloaded more than 13 millions
(!) times since November 2003.

The editor is very small and extremely handy to just quickly open a
single source file instead of loading the workspace in a Studio for full
development.

Attached is a file that will teach Notepad++ the DataFlex language
commands. It has the colapsable bits for begin/end, and the syntax
highliting. I did not worry about code complete (yet) as this is too
much work, and really this is where the Studio should always be used for!

To 'install' this follow the following steps;
1. If you've never modified the user defined language file then simply
copy the attached file into the directory: C:\Program Files\Notepad++.
There should not be a file called userDefineLang.xml
2. If you find there is already a file called userDefineLang.xml, open
this file and the attached file into a editor (why not Notepad++) and
just merge the XML files. It should be quite straight forward.

Now I only spend like 30 minutes on this, so there will be missing
words. Please let me know in this forum. If you update the file yourself
I suggest you re-upload it so we all have the latest.

Have fun with this ;)

Cheers,
Marco

DavePorter
2-Feb-2009, 02:41 AM
Hi Marco,

Thanks for this - I use Notepad++ for use outside VDF. Being light
weight it is very useful for editing files alongside my FTP program.

But I'm not sure how to use the XML file. I placed it in the Notepad++
folder, but don't seem to get any action when I edit a file of the type
it is set for

Also I noticed vw files are an obvious omission ?

cheers Dave Porter


Marco Kuipers wrote:
> Hi Guys,
>
> Notepad++ is a very good open source text editor. The project is
> maintained on Source Forge and has been downloaded more than 13
> millions (!) times since November 2003.
>
> The editor is very small and extremely handy to just quickly open a
> single source file instead of loading the workspace in a Studio for
> full development.
>
> Attached is a file that will teach Notepad++ the DataFlex language
> commands. It has the colapsable bits for begin/end, and the syntax
> highliting. I did not worry about code complete (yet) as this is too
> much work, and really this is where the Studio should always be used for!
>
> To 'install' this follow the following steps;
> 1. If you've never modified the user defined language file then simply
> copy the attached file into the directory: C:\Program Files\Notepad++.
> There should not be a file called userDefineLang.xml
> 2. If you find there is already a file called userDefineLang.xml, open
> this file and the attached file into a editor (why not Notepad++) and
> just merge the XML files. It should be quite straight forward.
>
> Now I only spend like 30 minutes on this, so there will be missing
> words. Please let me know in this forum. If you update the file
> yourself I suggest you re-upload it so we all have the latest.
>
> Have fun with this ;)
>
> Cheers,
> Marco
>

Hans van de Laar
2-Feb-2009, 03:42 AM
Hi Dave,

I think the location of the UserdefineLang.xml depends on your setup. I
had to put this xml file in the
C:\Users\Hans\AppData\Roaming\Notepad++\ folder and it is working ok
form me.

--
Kind regards,
Hans van de Laar

www.datascore.nl


Dave Porter wrote:

> Hi Marco,
>
> Thanks for this - I use Notepad++ for use outside VDF. Being light
> weight it is very useful for editing files alongside my FTP program.
>
> But I'm not sure how to use the XML file. I placed it in the
> Notepad++ folder, but don't seem to get any action when I edit a file
> of the type it is set for
>
> Also I noticed vw files are an obvious omission ?
>
> cheers Dave Porter
>
>
> Marco Kuipers wrote:
> > Hi Guys,
> >
> > Notepad++ is a very good open source text editor. The project is
> > maintained on Source Forge and has been downloaded more than 13
> > millions (!) times since November 2003.
> >
> > The editor is very small and extremely handy to just quickly open a
> > single source file instead of loading the workspace in a Studio for
> > full development.
> >
> > Attached is a file that will teach Notepad++ the DataFlex language
> > commands. It has the colapsable bits for begin/end, and the syntax
> > highliting. I did not worry about code complete (yet) as this is
> > too much work, and really this is where the Studio should always
> > be used for!
> >
> > To 'install' this follow the following steps;
> > 1. If you've never modified the user defined language file then
> > simply copy the attached file into the directory: C:\Program
> > Files\Notepad++. There should not be a file called
> > userDefineLang.xml 2. If you find there is already a file called
> > userDefineLang.xml, open this file and the attached file into a
> > editor (why not Notepad++) and just merge the XML files. It should
> > be quite straight forward.
> >
> > Now I only spend like 30 minutes on this, so there will be missing
> > words. Please let me know in this forum. If you update the file
> > yourself I suggest you re-upload it so we all have the latest.
> >
> > Have fun with this ;)
> >
> > Cheers,
> > Marco
> >

DavePorter
2-Feb-2009, 05:55 AM
Thanks Hans,

Yep that works now - looks like you are using Vista, so for me on XP it is
C:\Documents and Settings\dave\Application Data\Notepad++

cheers Dave


Hans van de Laar wrote:
> Hi Dave,
>
> I think the location of the UserdefineLang.xml depends on your setup. I
> had to put this xml file in the
> C:\Users\Hans\AppData\Roaming\Notepad++\ folder and it is working ok
> form me.
>
>

Hans van de Laar
2-Feb-2009, 06:12 AM
Hi Dave,

>>looks like you are using Vista.
Yes you're right!

--
Kind regards,
Hans van de Laar

www.datascore.nl


Dave Porter wrote:

> Thanks Hans,
>
> Yep that works now - looks like you are using Vista, so for me on XP
> it is C:\Documents and Settings\dave\Application Data\Notepad++
>
> cheers Dave
>
>
> Hans van de Laar wrote:
> > Hi Dave,
> >
> > I think the location of the UserdefineLang.xml depends on your
> > setup. I had to put this xml file in the
> > C:\Users\Hans\AppData\Roaming\Notepad++\ folder and it is working ok
> > form me.
> >
> >

Marco
2-Feb-2009, 05:26 PM
Hi Guys,

Attached is the latest version with the .vw extention.

Instructions:
1. If you have already modified the user defined language, you would
have already a file called 'userDefineLang.xml'. Please look in the
locations:
Vista: C:\Users\<yourself>\AppData\Roaming\Notepad++\
XP: C:\Documents and Settings\<yourself>\Application Data\Notepad++
or: C:\Program Files\Notepad++

If the file is not in any of these locations, just save attached file
there and restart your Notepad++

If you do have the file already, just merge it, as it is just 'normal' xml.

If there are any omissions, please email me and I'll add them.
When changes settle, I'm planning to add this to either VDF Guidance or
VDFWiki (or both, depending on Wil's opinion).

Cheers,
Marco


Dave Porter wrote:
> Hi Marco,
>
> Thanks for this - I use Notepad++ for use outside VDF. Being light
> weight it is very useful for editing files alongside my FTP program.
>
> But I'm not sure how to use the XML file. I placed it in the Notepad++
> folder, but don't seem to get any action when I edit a file of the type
> it is set for
>
> Also I noticed vw files are an obvious omission ?
>
> cheers Dave Porter
>
>
> Marco Kuipers wrote:
>> Hi Guys,
>>
>> Notepad++ is a very good open source text editor. The project is
>> maintained on Source Forge and has been downloaded more than 13
>> millions (!) times since November 2003.
>>
>> The editor is very small and extremely handy to just quickly open a
>> single source file instead of loading the workspace in a Studio for
>> full development.
>>
>> Attached is a file that will teach Notepad++ the DataFlex language
>> commands. It has the colapsable bits for begin/end, and the syntax
>> highliting. I did not worry about code complete (yet) as this is too
>> much work, and really this is where the Studio should always be used for!
>>
>> To 'install' this follow the following steps;
>> 1. If you've never modified the user defined language file then simply
>> copy the attached file into the directory: C:\Program Files\Notepad++.
>> There should not be a file called userDefineLang.xml
>> 2. If you find there is already a file called userDefineLang.xml, open
>> this file and the attached file into a editor (why not Notepad++) and
>> just merge the XML files. It should be quite straight forward.
>>
>> Now I only spend like 30 minutes on this, so there will be missing
>> words. Please let me know in this forum. If you update the file
>> yourself I suggest you re-upload it so we all have the latest.
>>
>> Have fun with this ;)
>>
>> Cheers,
>> Marco
>>

wila
3-Feb-2009, 06:52 AM
Marco,

> If there are any omissions, please email me and I'll add them.
> When changes settle, I'm planning to add this to either VDF Guidance or
> VDFWiki (or both, depending on Wil's opinion).

Whatever you think is best. If you want to put it at VDF-Guidance you
can even put it in subversion under source control if that makes sense.

I'm not a notepad++ user myself (I use editpad pro for text editing) but
did notice that notepad++ was on the top 20 list at sourceforge this
month. The part that makes me wonder about this project is the name of
this file UserDefineLang.xml is that just the default? Can't it be
changed into for example DataFlexLang.xml ?

Maybe when it gets in a finished state, we can even have it added to
notepad++
--
Wil

Marco
3-Feb-2009, 06:08 PM
Hi Wil,


Notepad++ is shipped with a langs.xml and langs.model.xml. This is for
the supported languages. You can add a node for each language you like,
but when you do you can only change it after by altering the xml file.

When you use the 'View'-'User Define Dialog...' then you get a panel you
can dock next to your code, where you can maintain the
UserDefineLang.xml. This file can contain many languages.

I guess if you want you can copy and paste the section in the
UserDefineLang.xml into the Langs.xml but then you have to be carefull
when doing a full upgrade.

Out of the box, about 70 languages are supported, but in the newsgroups
you find about 100 more. If we want I guess we could try to get the
DataFlex one into the standard product.

One thing that is on my mind is;
Do we create one for DataFlex 3x and one for VDF?!?
For example, 'Accept', 'Autopage' etc are offcourse only CM related. But
then again, it would not be in the way in VDF 'cause you would not use
it anyway. Also the extentions would not identify the one from the other.

It is also quite easy to build code assist or intellisense into
Notepad++. All you have to do is create a DataFlex.api file and save it
into the Plugin directory. When the extention is linked to the DataFlex
language (as per my attached file), it would look if there is a
DataFlex.api file and use it if there is.

I think this last step is one to far though, as it offcourse is a static
list, not showing your methods, classes, variables etc. This is where
the Studio offcourse rocks!!!

But Notepad++ is perfect for:
1. Viewing code from another project than the one you are working on.
2. Linking to your sourcecode system for a quick view
3. Link in your right click menu, to just view anyfile

Cheers,
Marco



Wil van Antwerpen wrote:
> Marco,
>
>> If there are any omissions, please email me and I'll add them.
>> When changes settle, I'm planning to add this to either VDF Guidance
>> or VDFWiki (or both, depending on Wil's opinion).
>
> Whatever you think is best. If you want to put it at VDF-Guidance you
> can even put it in subversion under source control if that makes sense.
>
> I'm not a notepad++ user myself (I use editpad pro for text editing) but
> did notice that notepad++ was on the top 20 list at sourceforge this
> month. The part that makes me wonder about this project is the name of
> this file UserDefineLang.xml is that just the default? Can't it be
> changed into for example DataFlexLang.xml ?
>
> Maybe when it gets in a finished state, we can even have it added to
> notepad++
> --
> Wil

Garret Mott
3-Feb-2009, 06:25 PM
Not to argue with this in any way (I don't currently use Notepad++, but plan
to check it out), but:

> 1. Viewing code from another project than the one you are working on.

With the new Studio being able to have multiple instances open, this is less
of an issue for me (I have 3 studios open as I write this...).

Thanks for the contribution Marco!

Garret

"Marco Kuipers" <marco.kuipers@nci.com.au> wrote in message
news:jgQ7cRlhJHA.2504@dacmail.dataaccess.com...
> Hi Wil,
>
>
> Notepad++ is shipped with a langs.xml and langs.model.xml. This is for the
> supported languages. You can add a node for each language you like, but
> when you do you can only change it after by altering the xml file.
>
> When you use the 'View'-'User Define Dialog...' then you get a panel you
> can dock next to your code, where you can maintain the UserDefineLang.xml.
> This file can contain many languages.
>
> I guess if you want you can copy and paste the section in the
> UserDefineLang.xml into the Langs.xml but then you have to be carefull
> when doing a full upgrade.
>
> Out of the box, about 70 languages are supported, but in the newsgroups
> you find about 100 more. If we want I guess we could try to get the
> DataFlex one into the standard product.
>
> One thing that is on my mind is;
> Do we create one for DataFlex 3x and one for VDF?!?
> For example, 'Accept', 'Autopage' etc are offcourse only CM related. But
> then again, it would not be in the way in VDF 'cause you would not use it
> anyway. Also the extentions would not identify the one from the other.
>
> It is also quite easy to build code assist or intellisense into Notepad++.
> All you have to do is create a DataFlex.api file and save it into the
> Plugin directory. When the extention is linked to the DataFlex language
> (as per my attached file), it would look if there is a DataFlex.api file
> and use it if there is.
>
> I think this last step is one to far though, as it offcourse is a static
> list, not showing your methods, classes, variables etc. This is where the
> Studio offcourse rocks!!!
>
> But Notepad++ is perfect for:
> 1. Viewing code from another project than the one you are working on.
> 2. Linking to your sourcecode system for a quick view
> 3. Link in your right click menu, to just view anyfile
>
> Cheers,
> Marco
>
>
>
> Wil van Antwerpen wrote:
>> Marco,
>>
>>> If there are any omissions, please email me and I'll add them.
>>> When changes settle, I'm planning to add this to either VDF Guidance or
>>> VDFWiki (or both, depending on Wil's opinion).
>>
>> Whatever you think is best. If you want to put it at VDF-Guidance you can
>> even put it in subversion under source control if that makes sense.
>>
>> I'm not a notepad++ user myself (I use editpad pro for text editing) but
>> did notice that notepad++ was on the top 20 list at sourceforge this
>> month. The part that makes me wonder about this project is the name of
>> this file UserDefineLang.xml is that just the default? Can't it be
>> changed into for example DataFlexLang.xml ?
>>
>> Maybe when it gets in a finished state, we can even have it added to
>> notepad++
>> --
>> Wil

Frigyes Nagy
27-Feb-2009, 08:40 AM
Hi!

I try to use Notepad++ with DOS 3.2, thx for this info ...

It's possible to use the Editor with OEM Character Set ?

TIA

Frigyes

Marco
1-Mar-2009, 07:37 PM
Hi Frigyes,

You can set the font to MS Linedraw.
Menu option: View
Menu sub option: User define dialog
Tab: Folder & Default
3d Container: Default Style settings
Form: Fontname
Value: MS Linedraw.

This should solve your problem.

Cheers,
Marco

Frigyes
18-Mar-2009, 06:42 AM
Hi Marco!

many thx,

now I can see my source in the right format,

but the keyboard driver remains in ANSI Mode,
I can't type OEM characters

to example:
I try to insert the word "Firmengröße" see in attachment,
the first line is the origin, the second line the new one



best regards
frigyes

Frank Cheng
1-May-2012, 11:32 AM
I recently start using Notepad++ myself. I have created an Auto-Complete xml for VDF.5052 I have attached it here in case anyone is interested.

Frank Cheng

Vincent Oorsprong
1-May-2012, 11:41 AM
Frank,

How to use this?

Frank Cheng
1-May-2012, 03:00 PM
Vincent,

Assuming you install Notepad++ on C:\NP
Put the XML to the folder "C:\NP\plugins\APIs"
Also you have to have the definition from Macro (the first post in this thread).
You need to open up his xml and changed from

<UserLang name="DataFlex"

to

<UserLang name="VDF"

Finally, copy Macro's XML to C:\NP

For more info, you can refer to the documentation that comes with NotePad++ about user-defined language and custom auto-complete.

Frank Cheng

chuckatkinson
1-May-2012, 04:12 PM
THANKS FRANK ! This is great work.

Garret Mott
1-May-2012, 04:37 PM
Yes indeed. Thanks to both Frank & Marco!

seanyboy
2-May-2012, 09:23 AM
Anyone seen Sublime? It's my new favourite Editor.
http://www.sublimetext.com/2

chuckatkinson
2-May-2012, 09:54 AM
Frank,

Great work. Thanks a bunch. I was reading the vdf.xml and trying to figure out how to add the Mertech driver commands since Codesense is no help with these and in fact turns off if it doesn't recognize the command. It's been a PAIN forever. Anyway could you share how you went about doing this? I noticed that every thing in the xml is a func ? Is that needed for Autocomplete? I can't find any doc on this feature in Notepad++

Frank Cheng
2-May-2012, 04:13 PM
Chuck,

Unfortunately I have not figured out how to do Auto-Complete with " " (space) separator, which is required for commands to work.
There have been discussions about this at
http://sourceforge.net/projects/notepad-plus/forums/forum/331754/topic/3761231

Frank Cheng

chuckatkinson
2-May-2012, 04:28 PM
Thanks Frank.

Still very good work.

BTW - Was just looking at the Codejock SyntaxEdit 2011. I know DAW uses a bunch of the Codejock controls (MFC) in VDF Studio. Wonder how massive a change it would be for them to switch over to this control for the editor? Probably way too much ....

hellboy
2-May-2012, 09:26 PM
Anyone seen Sublime? It's my new favourite Editor.
http://www.sublimetext.com/2
Yep, an excellent editor - I use it for pretty much everything other the Dataflex...

Focus
3-May-2012, 12:26 PM
Hi Frank

I've just tried this and it doesn't seem to be working for me ? I must have missed something

I've put your file in the c:\program files\notepad++\plugins\apis and it already had VDF at top

I've put marco's in c:\program files\notepad++ and tried with Dataflex and VDF at the top

When I open an src neither VDF or Dataflex is shown on the language menu

If I click user defined then nothing happens beyond a new blank thin column on the left of the screen

I'm only really interested in the basic syntax highlighting for the reasons Marco says it's just handy to RC on a file and look at it without needing to load the whole studio shooting match or it's a different version etc etc

Thanks

Frank Cheng
3-May-2012, 02:28 PM
Hi all,

Seems like my recent submission of the Auto-Complete for VDF generates quite a bit of interest. Here is a step-by-step guide to get the VDF syntax highlighting and autocomplete to NotePad++.

1) If you don't have NotePad++, download NotePad++ at http://notepad-plus-plus.org/download/v6.1.2.html If the link is not valid anymore in the future, just Google it ;)

2) Assume you install NotePad++ on C:\NP folder. If you have NotePad++ running at this moment, close it.

3) Grab the attachment userDefinedLang.xml from this post (not from Macro's post), and put that file in C:\NP. It will prompt you to overwrite. This will enable VDF syntax highlighting in NotePad++. My advice to you is to backup a copy of the original userDefinedLang.xml (Just in case)

4) Grab the attachment vdf.xml from this post, put that file in C:\NP\plugins\APIs folder. Again, backup any file that you are about to overwrite. This file enables VDF AutoComplete for global functions.

5) I've set my color scheme to be black. To change the color scheme in Notepad++ for the VDF syntax - Open up NotePad++, View menu->User Defined Dialogue. At the top of the new pop-up window, choose "VDF" from the combo-box. Finally go through all the tabs within that popup window to change any color you want.

Hope that helps,

Frank Cheng

Focus
3-May-2012, 04:45 PM
Nope still no worky for me. I've tried a couple of machines now :confused:

Frank Cheng
3-May-2012, 05:59 PM
Try downloading a fresh copy of NotePad++ and put it in a brand new folder (Other than your C:\Program Files\NotePad++). Your existing copy of NotePad++ already has some kind of VDF syntax highlighting already. I have tried this method (brand new install) on different machine. It has worked for me pretty well so far.

Frank Cheng

Garret Mott
3-May-2012, 06:20 PM
Am I correct in understanding that I won't see words in a different color? For example (even after a new install & recopying the xml files) Begin & End are the same black as everything else, whereas if I switch to Pascal for a language, they are bright blue.

Must be something stoopid I'm doing or not understanding?

Thanks!

DavePorter
3-May-2012, 07:56 PM
I was curious so tried to get it working, but no luck!
One thing I notice, is that the userdefineLang.xml does not already exist in the c:\np folder ? (see step 3 in Franks post!)
(And no where else!)
Could this be the issue !
Dave

Update: I got syntax highlighting, by going through the import process at: View menu->User Defined Dialogue.
(I imported the userDefinedLang.xml file!)

Marco
3-May-2012, 09:52 PM
My package should color the code lines as per studio and screenshot below.
Have not been able to get Frank's CodeCompletion to work though.

5063

Focus
4-May-2012, 05:02 AM
Ok i've de-installed NP++, deleted the NP folder, rebooted, installed NP++, dropped your userDefineLang.xml into the NP folder

Opened a pkg file .....

No syntax highlight like in your screenshot

Select Language>UserDefined off menu and a blank column is inserted where I would expect to see code collapse but that's it nothing else

Not sure what myself and a few others are missing here but it would be nice to get it to work

Cheers

DavePorter
4-May-2012, 05:14 AM
Read my info two posts back !


Ok i've de-installed NP++, deleted the NP folder, rebooted, installed NP++, dropped your userDefineLang.xml into the NP folder

Opened a pkg file .....

No syntax highlight like in your screenshot

Select Language>UserDefined off menu and a blank column is inserted where I would expect to see code collapse but that's it nothing else

Not sure what myself and a few others are missing here but it would be nice to get it to work

Cheers

Focus
4-May-2012, 06:06 AM
OK now working with pkg and src files but not vw files so I assume the extention is missing ?

Focus
4-May-2012, 07:39 AM
ok just replaced/imported Marcos with Franks version and I now have to select VDF from the language menu and although there is much more comprehensive colour highlighting the colours have gone a bit 'mental' with green text on black backgound etc ie nothing like the VDF studio ?

chuckatkinson
4-May-2012, 07:52 AM
5065I have a color scheme that is close to the Studio.

Focus
4-May-2012, 08:17 AM
Thanks. I've loaded it and I think this is Marco's one as it looks the same ?

Vincent Oorsprong
4-May-2012, 08:28 AM
Frank,

One IMPORTANT NOTE; If you don't install in c:\np but in the default program files location you HAVE to start Notepad++ (at least once) with "run as administrator".

Focus
4-May-2012, 09:18 AM
5066

OK here is an amalgam of Marco's style and Frank's function ;)

Which is close enough for me for now

Cheers all

Bob Worsley
4-May-2012, 10:03 AM
I too have been unable to get this to work. My Notepad++ is installed in the default Program Files location on Server 2003 so no need to run as administrator. I assume that userDefineLang.xml would go into the Notepad++ folder instead of the C:\np folder. If so, after importing it in View/Userdefined... I see no change when I close and reopen Notepad++. Is there some place to "save" the import? I didn't see such.

Update: Uninstalled Notepad++ and reinstalled with the two xml files in place and finally got it to work. I think...

chuckatkinson
4-May-2012, 10:17 AM
Hey Bob,

If you did the installer version of NP++ then you might try looking in your %APPDATA% Roaming folder. You will probably see a Notepad++ folder there with your settings.

Bob Worsley
4-May-2012, 10:22 AM
You probably replied before I updated my post - too quick. I uninstalled Notepad++ and reinstalled but with the two xml files in place and it seems to work now. Not sure if that made the difference or not.

I use an odd set of colors in my editors - the entire window is black with all text in colors of choice -- but can't seem to get Notepad++ to do that.

chuckatkinson
4-May-2012, 10:53 AM
You can "play" with colors by going to "View", "User Defined Dialogue" and then DOCK it and play away...

Bob Worsley
4-May-2012, 11:02 AM
Yeah, did that, but don't see anywhere to set the window background color, only words and phrases.

Focus
4-May-2012, 11:09 AM
Settings > style configurator > deep black .... or kitty .... or whatever takes your fancy ...

Frank Cheng
4-May-2012, 11:49 AM
Hi all,

Few more things to note

1) In NP++, go to Settings menu->Preferences->Backup/Auto-Completion, make sure you check both checkboxes inside the Auto-Completion group. Otherwise Auto-complete doesn't work with ANY language.

2) My color scheme is mostly black. Therefore you can take a look at Macro's userDefineLang.xml to grab his color scheme (resembles the Studio's color scheme). My XMLs work best with the "Black Board" theme (Under Settings menu->Style Configurator)

3) I didn't download the installer from the NP++ web site. Instead, I downloaded the zip package and unzipped it myself. I hope there is no difference between the installer and the zip package.

Frank Cheng

Bob Worsley
4-May-2012, 12:37 PM
2) My color scheme is mostly black. Therefore you can take a look at Macro's userDefineLang.xml to grab his color scheme (resembles the Studio's color scheme). My XMLs work best with the "Black Board" theme (Under Settings menu->Style Configurator)That's what I was missing, thanks

Vincent Oorsprong
5-May-2012, 02:14 AM
All,

One thing to watch out for with Notepad++ is that the tool expects the files are in ANSI or UNICODE format. Your DataFlex source code is OEM so if you open the source and enter some extended characters you will see a different result in your compiled programs.