Thank you.

It will work if you assign a BBCode section in the Highlighters settings.

I simplified and completed the "PSPad_BBCode_infos.txt" from the download
above:

cite:
--------------------------------------------------------------------------------
Thanks to Stefan Pofahl

I start whith your code sample few years ago. All my excuse to not post before
today.

(viz http://img178.imageshack.us/img178/7837/bbcodepspad.png )

I make a colorsyntax for bbcode and html inside the same file. It's easy for
editing a post on the local; just copy after edit and past on the form post.
You can copy, past, register file on your system.You can keep some models of
file in the Program Files\PSPad\Template\ my-sing.bbcode, just need to use the
extention file .bbcode for your variable user file.
It will be easy to adapt the files for any bbcode or html Whith some modifs.

You may use PSPad ou Notepad to edit the files but close PSPad before to put the
files in the install of PSPad.

Instructions
------------

Add this in Program Files\PSPad\PSPad.ini right before [<not assigned>]:
_____________________________________________________________
[BBCode]
Filter=BBCode (*.bbcode)|*.bbcode
HLTabWidth=0
IndentChar=
UnIndentChar=
Compilator File=
Compilator Param=
Compilator LOG=
Compilator Run=
Compilator Help=
Compilator SaveAll=0
Compilator ParsLog=
Compilator Capture=0
Compilator HideOutput=0
Compilator DefaultDir=
Compilator LogType=0
Comment=00F0F00000000000010
Escape Ampersand=00008000FF000005100
Identifier=004080FF00000000000
Reserved Word=00FF3C9D00000000100
Space=0080800000000000000
Symbol=00FFFFFF00000000000
Text=FF000008FF000005000
Unknown Word=000000FFFF000005100
Value=00800000FF000005000
Key=0000FFFF00000000100
Label=000000FF00000000000
Number=00FF000000000000000
String=0000FF0000000000000
Key words 2=00FFFFFF00000000100
Key words 3=00FFFFFF00000000100
;Preprocessor=008080001FFFFFFF010
Preprocessor=0080800000000000010
_____________________________________________________________

Then add this in PSPad.ini again in the [Config] section. After the Language
line, you should see:

UserHighLighterName=

If the string is empty, make it

UserHighLighterName=BBCode

If not empty choose another User Highlighters line such as:

UserHighLighterName2=BBCode

replace the number 2 with the right number

_____________________________________________________________


Add Default.bbcode to Program Files\PSPad\Template\

Add BBCode.INI to Program Files\PSPad\Syntax\
Highlighter support the entries bbcode and html

Add BBCode.DEF to Program Files\PSPad\Context\
Highlighter support the entries bbcode and html

Open PSpad and go to "Settings/Highlighters settings"
If BBCode section doesn't exist, select a free <not assigned>, then in 
"specification TAB" select BBCode in the User Highlighters.

To test it. Clic the menu Files => New... => You will see a "BBCode" at the end
of the list: clic on it.
Start to edit some lines with bbcode.

You can register the file where you want exactly same of ".txt".

It's easy to adapt the files to your need. Just explore the contents.

Big thanks to some admins http://minemule.free.fr/forum/index.php
--------------------------------------------------------------------------------


Here is a new download link that contains corrections
http://www.mediafire.com/file/5dmiog2n18w64wr/PSPad_bbcode_addon.zip

-- 
<http://forum.pspad.com/read.php?2,33131,55145>
PSPad freeware editor http://www.pspad.com

Odpovedet emailem