You are here: PSPad forum > English discussion forum > bbcode

bbcode

Goto Page: 1 2 3 Next

#1 bbcode

Posted by: ataboy | Date: 2006-09-13 21:26 | IP: IP Logged

Hello,

I'm using PSPad for more a year now and i'm very satisfied.
One thing i'm missing, or i can't find it.

Do someone have a tool to edit text with bbcode, to insert bbcode.
A bbcode.DEF ? or a form of bbcode tools editing ?

More precisily for phpbb... or any other forum

If it's exist or someone have a ready or partial maked a link would be very appreciated..

Thanks in advance!

@+

Options: Reply | Quote | Up ^


#2 Re: bbcode

Posted by: Stefan Pofahl | Date: 2006-09-15 18:32 | IP: IP Logged

I have the same Problem, I want to define
the opening and the ending of format-orders,
but I fail, I don't know, how to tell PSpad
that the string < > is the begin of
bold face and that <
> is the end of
it.
In the ini-file < [ > has a special meaning,
I tried to overcome the problem by using the
char number, for < [ > it is 91
and know i tried [91]b[93], but failed also.
what is the trick?

Regards, Stefan

Options: Reply | Quote | Up ^


#3 Re: bbcode

Posted by: pspad | Date: 2006-09-15 19:53 | IP: IP Logged

Stefan Pofahl:
I have the same Problem, I want to define
the opening and the ending of format-orders,
but I fail, I don't know, how to tell PSpad
that the string < > is the begin of
bold face and that <
> is the end of
it.
In the ini-file < [ > has a special meaning,
I tried to overcome the problem by using the
char number, for < [ > it is 91
and know i tried [91]b[93], but failed also.
what is the trick?

Regards, Stefan

I don't understand. What you want to do ?

Options: Reply | Quote | Up ^


#4 Re: bbcode

Posted by: Stefan Pofahl | Date: 2006-09-15 21:26 | IP: IP Logged

In phpbb-Forums you have special commands
to format strings, e.g. bold is[b]boldtext[/b],
just like in this forum smiling smiley
Know there are two problems:

- first I don't know
how to define a highlighting for the command begin bold[b],
because[is special caracter

- second I don't know how to define clips.
For the clips I found an ugly workaround:
-------------------------------------------------------------------
;phpbb def-file
[Macro definition]
%text%=@E text=,,§,,
;
[bold |R bold face]*Ctrl+B
%%[b]%text%|[/b]
--------------------------------------------------------------------

But I'm shure I can give him the char nr 91 ([)
in a better way, \x91 and \x{91} are also not working

Regards, Stefan

Options: Reply | Quote | Up ^


#5 Re: bbcode, phpbb-mode

Posted by: Stefan Pofahl | Date: 2006-09-16 22:32 | IP: IP Logged

Here is my hack:
bbcode-mode / phpbb-code-mode
It works but the highlighting is
not realistic, I'm sure someone can improve the
context and the syntax file.
regards, Stefan

Options: Reply | Quote | Up ^


#6 Re: bbcode, phpbb-mode

Posted by: petitrot | Date: 2009-09-18 23:54 | IP: IP Logged

Thanks to Stefan Pofahl

I start with your code sample. All my excuses to not post before today.

image

Highlighter is working for bbcode and html in the same file.

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 and 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 with some modifs.

For the install you need:
- add some lines ine the PSPad.ini
- create Default.bbcode to Program Files\PSPad\Template\Default.bbcode
- create BBCode.INI to Program Files\PSPad\Syntax\BBCode.INI
- create BBCode.DEF to Program Files\PSPad\Context\BBCode.DEF

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

The scripts you need:
rapidshare.com
MD5: D4BBAAB636035351D5B0E23BCEE34670
This link is valuable for only 10 downloads or 90 days sad smiley

PSPad close, edit and put these files in your install PSPad.
Start PSPad. 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 [url]http://_minemule_free_fr/forum/index.php[/url]

Bye smiling smiley

Edit by mod: disabled the link to the forum

Edited 2 time(s). Last edit at 2010-10-28 18:03 by Stefan.

Options: Reply | Quote | Up ^


#7 Re: bbcode, phpbb-mode

Posted by: fred_gaou | Date: 2010-10-28 03:26 | IP: IP Logged

Link is dead. Pleas reupload on mediafire or else.

Options: Reply | Quote | Up ^


#8 Re: bbcode, phpbb-mode

Posted by: petitrot | Date: 2010-11-22 00:21 | IP: IP Logged

fred_gaou:
Link is dead. Pleas reupload on mediafire or else.

Hi

I receve you mail smiling smiley

I post the contents of these files

1- Add this in Program Files\PSPad\PSPad.ini
On the start line 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=00FD7E00FF000005000
Escape Ampersand=00008000FF000005100
Identifier=00000000FF000005000
Reserved Word=0005A040FF000005100
Space=0080800000FFFFFF000
Symbol=00CA00CAFF000005100
Text=FF000008FF000005000
Unknown Word=000000FFFF000005100
Value=00800000FF000005000
Key=004080FF00FFFFFF100
Label=00016AB81FFFFFFF100
Number=002D47FF1FFFFFFF100
String=00D926721FFFFFFF100
Key words 2=1FFFFFFF1FFFFFFF100
Key words 3=006969691FFFFFFF100
Preprocessor=0080800000EBF0E8010

2- Add this file, Default.bbcode to Program Files\PSPad\Template\Default.bbcode
Create this empty file Default.bbcode
Empty, nothing inside.

3- Add this file, BBCode.INI to Program Files\PSPad\Syntax\BBCode.INI


;PSPad user HighLighter definition file
[Settings]
Name=BBCode
HTMLGroup=1
Label=1
FileType=*.bbcode
CommentString=
CComment=1
IndentChar=
UnIndentChar=
TabWidth=0
DoubleQuote=1
KeyWordChars=
CodeExplorer=ftHTM
[KeyWords]
b=
center=
code=
color=
email=
face=
i=
img=
left=
list=
quote=
right=
size=
strike=
u=
url=
[ReservedWords]
BEGIN=
class=
END=
id=
style=
[KeyWords2]
a=
align=
alt=
background=
bgcolor=
big=
blockquote=
body=
bold=
border=
bordercolor=
br=
div=
EMAIL=
embed=
font=
height=
href=
hspace=
html=
iframe=
iso=
italic=
li=
link=
marquee=
name=
nobr=
nowrap=
ol=
pre=
rows=
rowspan=
small=
spacer=
span=
src=
strong=
table=
target=
tbody=
td=
th=
title=
title=
tr=
tt=
type=
ul=
underline=
valign=
vspace=
width=
[KeyWords3]
Arial=
Black=
black=
Blue=
blue=
brown=
Brown=
Comic=
Console=
Corsiva=
Courier=
cyan=
darkblue=
darkred=
dee3e7=
efefef=
Franklin=
Georgia=
Gothic=
green=
Impact=
indigo=
Lucida=
Medium=
Monotype=
MS=
New=
olive=
orange=
red=
Roman=
Sans=
Sylfaen=
Tahoma=
Times=
Trebuchet=
Unicode=
Verdana=
violet=
white=
yellow=

Others files on the next post

smiling smiley

Options: Reply | Quote | Up ^


#9 Re: bbcode, phpbb-mode

Posted by: petitrot | Date: 2010-11-22 00:47 | IP: IP Logged

PSPad_bbcode_addon (post #2)

Sorry angry smiley
Others files. The forum (code/code) yawning smiley do not support the code include in the file Program Files\PSPad\Context\BBCode.DEF

Ok! Another way...

Links to downloads the PSPad_bbcode_addon.zip

www.mediafire.com

or same file

www.mediafire.com

All the files to place in the PSPad installation are include in the zip file: read the file PSPaD_BBCode_infos.txt

Remember
First, edit the PSPad.ini file.
After, copy or edit the other files.

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

Please post here your comments.

smiling smiley

Options: Reply | Quote | Up ^


#10 Re: bbcode, phpbb-mode

Posted by: fred_gaou | Date: 2010-11-22 13:55 | IP: IP Logged

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:

Quote:
Thanks to Stefan Pofahl

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

image

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 minemule.free.fr

Here is a new download link that contains corrections
www.mediafire.com

Options: Reply | Quote | Up ^


Goto Page: 1 2 3 Next





Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR