« Project home page
my little forum
Log in
Register
Search:
Back to the entry by Auge
Post reply
Reply to the message by
Auge
Name:
E-mail:
(optional, won't be displayed directly)
Leave this field empty:
Homepage:
(optional)
Leave this field empty:
Location:
(optional)
Remember me (cookie)
Category:
General
Project organisation
Technics
Design/Themes
Features
Development
Todo
Bugs
German / Deutsch
Spanish / Español
French / Français
Accessibility/UX
Subject:
Formatting help
skip to input
format text bold
[b]bold text[/b]
format text italic
[i]italic text[/i]
insert hyperlink
[link=http://example.com/]link text[/link] / [link]http://example.com/[/link]
set text color
[color=#rgb]colored text[/color]
font size
[size=small]small text[/size]
[size=large]large text[/size]
insert list
[list][*]list item[/list]
insert image
[img]http://example.com/image.jpg[/img]
left: [img=left]http://example.com/image.jpg[/img]
right: [img=right]http://example.com/image.jpg[/img]
thumbnail: [img=thumbnail]http://example.com/image.jpg[/img]
thumbnail left: [img=thumbnail-left]http://example.com/image.jpg[/img]
thumbnail right: [img=thumbnail-right]http://example.com/image.jpg[/img]
upload image
upload image ...
insert TeX code
[tex]TeX code[/tex]
insert code
[inlinecode]code[/inlinecode]
[code]code[/code]
[code=css]code[/code]
[code=html]code[/code]
[code=javascript]code[/code]
[code=perl]code[/code]
[code=php]code[/code]
[code=sql]code[/code]
[code=xml]code[/code]
:-)
;-)
:-P
:-D
:-|
:-(
:yes:
:no:
:ok:
:lol:
:lol2:
:lol3:
:cool:
:surprised:
:angry:
:crying:
:waving:
:confused:
:lookaround:
:clap:
:love:
:tick:
Message:
> Hello, > > > > The SelfHTML-forum [...] That means, that when one inserts text in the textarea or in the input for the subject, this gets displayed immediately in the preview block. > > > > I believe it is an Ajax feature. > > I don't know if Ajax/Fetch is in the game. I would assume, that there is no need for a server-client-communication, if the client side rendering works completely independent (with BB-code parsing, etc.). So yes, the feature in the SelfHTML-forum is made with JavaScript but maybe not with Ajax/Fetch. > > > Adding the input one-to-one to a preview block is quite simple. However, the input is formatted on the fly. That means in our case, the BB-code must be parsed. > > To complete the description: this doesn't include code highlightning (because it is made on the server side (PHP lib GesHi)) but it should be able to parse the rest of the BB-codes. > > - [inlinecode][b][/inlinecode] > - [inlinecode][i][/inlinecode] > - [inlinecode][link][/inlinecode] > - [inlinecode][link=URL][/inlinecode] > - [inlinecode][url][/inlinecode] > - [inlinecode][url=URL][/inlinecode] > - [inlinecode][color=HEXCODE][/inlinecode] > - [inlinecode][size=small][/inlinecode] > - [inlinecode][size=large][/inlinecode] > - [inlinecode][list][/inlinecode] with [inlinecode][*][/inlinecode] [1] > - [inlinecode][img][/inlinecode] with all its subfeatures > - [inlinecode][inlinecode][/inlinecode] > - [inlinecode][code][/inlinecode] respecting but not parsing the languages > - [inlinecode]smileys[/inlinecode] as long as we want to support them for new entries (we have the much more powerful emoji support!) > - [inlinecode]emojis[/inlinecode] > > Tschö, Auge > > [1]: I personally don't like the list implementation because it adds [inlinecode]<br />[/inlinecode] after closing [inlinecode]</li>[/inlinecode]. This seems to be a limitation of the BB-code-parser-class or a misconfiguration in [link=https://github.com/ilosuna/mylittleforum/blob/069562f5b26f136a5c9457cb55dcde193944a937/includes/functions.inc.php#L1024]the parser definitions for lists[/link]. But that's my personal opinion and I don't know, what's to change.
E-mail notification on reply of this posting
OK - Submit
Preview