Templates • code и quote

About the template and stylesheet - and changing the menu
Post Reply
cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Templates • code и quote

Post by cmb » Mon Jul 07, 2014 12:09 pm

[This post has been originally been posted by Maxim, but it was unadvertently deleted. I have restored it from the forum's newsfeed.]

[ external image ] Добрый день.
На форумах используют теги bbCode code и quote существует плагин или CSS стиль чтобы использовать возможности и стиль этих тегов?
Посмотрите, может быть нужно добавить или убавить что нибудь в стиле?

Code: Select all

blockquote {padding: 0 0 0 15px;margin: 0 0 20px;border-left: 5px solid #eeeeee;}
pre code {margin: 0;color: black;white-space: pre;white-space: pre-wrap;background-color: transparent;border: 0;}
pre {margin: 10px;padding: 10px;display: block;line-height: 20px;word-break: break-all;word-wrap: break-word;background-color: #f5f5f5;-webkit-border-radius: 4px;border-radius: 4px;}
code {margin: 10px;color: black;background-color: #f7f7f9;border: 1px solid #e1e1e8;white-space: nowrap;}
[ external image ] Guten Tag.
Die Foren verwendeten Tags bbCode code und quote gibt es ein Plug-oder CSS-Stil, um Funktionen und Stil dieser Tags verwenden?
Schauen Sie, vielleicht in der Art zu addieren oder zu subtrahieren etwas?

Code: Select all

blockquote {padding: 0 0 0 15px;margin: 0 0 20px;border-left: 5px solid #eeeeee;}
pre code {margin: 0;color: black;white-space: pre;white-space: pre-wrap;background-color: transparent;border: 0;}
pre {margin: 10px;padding: 10px;display: block;line-height: 20px;word-break: break-all;word-wrap: break-word;background-color: #f5f5f5;-webkit-border-radius: 4px;border-radius: 4px;}
code {margin: 10px;color: black;background-color: #f7f7f9;border: 1px solid #e1e1e8;white-space: nowrap;}
[ external image ] Good afternoon.
The forums use the bbCode tags code and quote there is a plugin or CSS style to use the functionality and style of these tags?
Look, maybe need to add or subtract anything in style?

Code: Select all

blockquote {padding: 0 0 0 15px;margin: 0 0 20px;border-left: 5px solid #eeeeee;}
pre code {margin: 0;color: black;white-space: pre;white-space: pre-wrap;background-color: transparent;border: 0;}
pre {margin: 10px;padding: 10px;display: block;line-height: 20px;word-break: break-all;word-wrap: break-word;background-color: #f5f5f5;-webkit-border-radius: 4px;border-radius: 4px;}
code {margin: 10px;color: black;background-color: #f7f7f9;border: 1px solid #e1e1e8;white-space: nowrap;}
Christoph M. Becker – Plugins for CMSimple_XH

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Templates • code и quote

Post by cmb » Mon Jul 07, 2014 12:22 pm

Maxim wrote:Посмотрите, может быть нужно добавить или убавить что нибудь в стиле?
Yes, that could go to the template's stylesheet, because, for instance, the colors should fit. Some templates already have something like this (at least for <blockquote>).

If you are looking for a syntax highlighter for code, have a look at Syntaxhighlighter_XH. I will set up a demo as soon as possible.

PS: a demo of Syntaxhighlighter_XH is now available.
Christoph M. Becker – Plugins for CMSimple_XH

Maxim
Posts: 121
Joined: Thu Jun 13, 2013 6:52 am
Location: Запорожье
Contact:

TinyMCE (Syntaxhighlighter_XH)

Post by Maxim » Thu Jul 10, 2014 7:22 am

Добрый день.

[ external image ] С русской локализацией TinyMCE (Syntaxhighlighter_XH) не работает.
[ external image ] Mit der Russischen Lokalisierung TinyMCE (Syntaxhighlighter_XH) funktioniert nicht.
[ external image ] With russian localization TinyMCE (Syntaxhighlighter_XH) doesn't work.

http://cmsimple-xh.org/
CMSimple_XH_1_6_1_RU.zip
Simple Hosting
Бедная, бросаемая бурею, безутешная!

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Templates • code и quote

Post by cmb » Thu Jul 10, 2014 10:31 am

Maxim wrote:С русской локализацией TinyMCE (Syntaxhighlighter_XH) не работает.
Yes indeed! Actually, TinyMCE can't be used at all when the language files are missing, what is documented in the Limitations section of the manual.

A quick fix is to go to plugins/tinymce/tiny_mce/plugins/syntaxhl/langs/ and copy en.js to ru.js and en_dlg.js to ru_dlg.js. I have done so on your test installation (thanks for the account data). And of course you will want to translate both files.

I will have a look on how to change the current behavior, so Syntaxhighlighter uses the English language files by default, if the appropriate language files are missing.
Christoph M. Becker – Plugins for CMSimple_XH

Maxim
Posts: 121
Joined: Thu Jun 13, 2013 6:52 am
Location: Запорожье
Contact:

"en.syntaxhl" > "ru.syntaxhl"

Post by Maxim » Thu Jul 10, 2014 11:02 am

[ external image ] В файлах "ru.js" и "ru_dlg.js" нужно менять?:
[ external image ] In den Dateien "ru.js" und "ru_dlg.js" zu ändern?:
[ external image ] In files "ru.js" and "ru_dlg.js" we need to change?:
"en.syntaxhl" > "ru.syntaxhl"
"en.syntaxhl_dlg" > "ru.syntaxhl_dlg"
Simple Hosting
Бедная, бросаемая бурею, безутешная!

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Templates • code и quote

Post by cmb » Thu Jul 10, 2014 11:11 am

Maxim wrote:В файлах "ru.js" и "ru_dlg.js" нужно менять?:
"en.syntaxhl" > "ru.syntaxhl"
"en.syntaxhl_dlg" > "ru.syntaxhl_dlg"
I'm not sure. As it works without the change, it might not work otherwise. I'll have to investigate. For now, I suggest to not translate it.
Christoph M. Becker – Plugins for CMSimple_XH

Maxim
Posts: 121
Joined: Thu Jun 13, 2013 6:52 am
Location: Запорожье
Contact:

Нужно менять

Post by Maxim » Mon Jul 14, 2014 6:23 am

Good morning.

[ external image ] Нужно менять:
[ external image ] Zu ändern:
[ external image ] Need to change:
"en.syntaxhl" > "ru.syntaxhl"
"en.syntaxhl_dlg" > "ru.syntaxhl_dlg"

THANK YOU, CHRISTOPH!!!
Simple Hosting
Бедная, бросаемая бурею, безутешная!

Post Reply