1
FractalizeR
Syntax highlighting hack for all Xoops modules
  • 2005/2/1 20:22

  • FractalizeR

  • Just popping in

  • Posts: 5

  • Since: 2005/1/24


This hack is a syntax highlighting support hack for XOOPS 2.x for various programming languages. Syntax highlighting modules included in package are for: С++, CSS (Cascading Style Sheets), Delphi (very simplified), DTD, Java (very simplified), JavaScript, MySQL, Perl, PHP, Python, Ruby, SQL, и XML.

Hack is based on Text_Highlighter PEAR module (by Andrey Demenev (lead)). As this module is under development now and in beta state, I included it's modified version in archive, that desn't require installation into the PEAR repository and requires only PEAR.php to work (PEAR core should be installed, of course). All syntax highlighting sucomponents are taken from there, except for Delphi and Java, which are built by myself in a hurry :).

Hack is applied using module.textsanitizer.php modifying, so it will work not only in native XOOPS modules, but also in others like SmartFAQ, for example (I tested).

An example of syntax highlighting of Java language in SmartFAQ module can be seen here::

http://www.vrsi.ru/modules/smartfaq/faq.php?faqid=2

http://www.vrsi.ru/modules/smartfaq/faq.php?faqid=4

Hack is very customizable and new highlighting modules and tags are easily integratable. Of course, highlighting colors are fully customizable. Very small and simplified version included in this archive.

Hack can be downloaded at this link:
http://www.vrsi.ru/modules/mydownloads/visit.php?cid=12&lid=9

All comments are highly aprreciated.



2
FractalizeR
Re: Unable to get news using xoopsheadlines and xhld from rss with windows-1251 encoded XML
  • 2005/1/27 14:26

  • FractalizeR

  • Just popping in

  • Posts: 5

  • Since: 2005/1/24


Hi!

Yes, there are some solutions. But I didn't find a complete russian translation ready-to-use in their downloads section.

And, to all, it is always a pleasure to make a solution by yourself. Isn't it? ;) So I did my own and posted there.



3
FractalizeR
Re: Unable to get news using xoopsheadlines and xhld from rss with windows-1251 encoded XML
  • 2005/1/27 12:48

  • FractalizeR

  • Just popping in

  • Posts: 5

  • Since: 2005/1/24


Thank you all. Solution is just made by me.

It can be downloaded here:

http://www.vrsi.ru/modules/mydownloads/singlefile.php?cid=12&lid=8



4
FractalizeR
Unable to get news using xoopsheadlines and xhld from rss with windows-1251 encoded XML
  • 2005/1/26 21:34

  • FractalizeR

  • Just popping in

  • Posts: 5

  • Since: 2005/1/24


Hello!

I'm russian XOOPS user. I installed both xoopsheadlines and xhld modules and tried to retrieve news from russian rss resources (http://www.compulenta.ru/rss.xml for example). Data can be retrieved only by xhld and only in ISO encoding. But, ISO encoding shows russian letters incorrectly.

So, how can I get rss news in windows-1251 encoding?




TopTop



Login

Username:
Password:

Lost Password? Register now!

Who's Online

53 user(s) are online (25 user(s) are browsing Support Forums)


Members: 0


Guests: 53


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits