Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2009-06-30 17:09:06

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

Re: fox_code - A bridge to the powerful GeSHi syntax highlighter

hi Riccardo, Glad you are back:)

Is fox_files_stats plugin still supported too?


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#14 2009-06-30 17:10:52

Gr3yFox
Plugin Author
From: Genova, Italy
Registered: 2007-06-18
Posts: 42
Website

Re: fox_code - A bridge to the powerful GeSHi syntax highlighter

Yes, it is. I removed both of them from the orphaned page on the wiki but I forgot removing [orphaned] from the fox_files_stats thread. Thank you for the remainder.

PS: I never leaved, the only thing is that with the university I had no time to post anything. :)


Gr3yFox

Offline

#15 2009-10-27 07:54:36

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: fox_code - A bridge to the powerful GeSHi syntax highlighter

Riccardo, I’m having issues with fox_code and Geshi 1.0.8.4. As reported here, I get plenty of unwanted <br /> and <p> at every line break/double line break inside code. I can’t understand how to use the plugin inside articles. I’m wrapping code like this:

<txp:fox_code language="css">body {
color: #fff;
padding: 0 4px 5px 0;
marging: 0;
}

h1 {
margin:0
}</txp:fox_code>

and I get something like this (if coloured):

body { <br/>
color: #fff; <br/>
padding: 0 4px 5px 0; <br/>
marging: 0; <br/>
} <p>

</p>h1 { <br/>
margin:0; <br/>
}

Where am I failing? Thanks

Last edited by Zanza (2009-10-27 07:54:58)

Offline

#16 2009-10-27 11:00:59

Gr3yFox
Plugin Author
From: Genova, Italy
Registered: 2007-06-18
Posts: 42
Website

Re: fox_code - A bridge to the powerful GeSHi syntax highlighter

Hi, thanks for using my plugin :D
I suppose you’re using textile. You have to disable it just before the opening tag. I’m not used to textile, so I cannot say you how to disable it only in a little part of the message, but I’m sure you can.


Gr3yFox

Offline

#17 2009-10-27 15:05:57

Zanza
Plugin Author
Registered: 2005-08-18
Posts: 699
Website

Re: fox_code - A bridge to the powerful GeSHi syntax highlighter

Ops. You’re right. I haven’t seen this mentioned in the help or in your article! To be honest, I thought it could have been a textile problem, but failed to find the exact place to put notextile.. . Thanks to Gocom I made it! Thanks again.

Offline

#18 2011-09-03 13:15:28

Gr3yFox
Plugin Author
From: Genova, Italy
Registered: 2007-06-18
Posts: 42
Website

Re: fox_code - A bridge to the powerful GeSHi syntax highlighter

Hi everyone.
I’m here just to say hello, ensure this plugin is not marked as orphaned again, and, last but not least, announce the new 0.2.1 version. Now it’s compatible with Textpattern 4.4, there were some problems with the new mandatory tag naming conventions.
I’m sorry to post an update this late, but I really did not notice the problem until today.


Gr3yFox

Offline

#19 2011-09-04 14:20:33

Gr3yFox
Plugin Author
From: Genova, Italy
Registered: 2007-06-18
Posts: 42
Website

Re: fox_code - A bridge to the powerful GeSHi syntax highlighter

I just released my code on GitHub to improve its maintainability.
I’m planning to review a little bit the code soon and check for it’s compatibility with new versions of geshi (my library version is still quite old).
I have a favor to ask you: could you post some tickets about the problems you’re experiencing or about the features that in your opinion are still missing on my GitHub page, please?

https://github.com/Gr3yFox/fox_code/issues

I’m planning to do that for fox_files_stats too.


Gr3yFox

Offline

#20 2011-09-16 07:43:36

sgreener
Member
Registered: 2008-11-05
Posts: 16

Re: fox_code - A bridge to the powerful GeSHi syntax highlighter

Gr3yFox,

You have done us a great service.

I downloaded the latest geshi and moved geshi.php and the geshi folder to textpattern/lib.

I am now trying to get it to work.

I create a new article and put this into it.

<txp:fox_code language=“sql” >SELECT * FROM DUAL;</txp:fox_code>

I don’t get any colouring of SELECT and FROM. I have tried putting notextile. in front but it still doesn’t work.

Can you help me get it working please?

regards
Simon

Last edited by sgreener (2011-09-16 07:44:39)

Offline

#21 2011-09-16 07:46:54

Gr3yFox
Plugin Author
From: Genova, Italy
Registered: 2007-06-18
Posts: 42
Website

Re: fox_code - A bridge to the powerful GeSHi syntax highlighter

Hi,

I’ll try to check it this evening.

Best,
Riccardo

edit: is that an issue that arises only with fox_code + sql language or not?

Last edited by Gr3yFox (2011-09-16 07:57:55)


Gr3yFox

Offline

#22 2011-09-16 08:25:54

sgreener
Member
Registered: 2008-11-05
Posts: 16

Re: fox_code - A bridge to the powerful GeSHi syntax highlighter

I don’t know Italian though I am married to one. No, I was not being sarcastic at all. I have been looking for a functional syntax highlighter for TextPattern for a long time. I want it to highlight SQL that I publish on my website. I have done all the installs I think correctly but can’t get fox_code to work. Can you help me.
Simon

Offline

#23 2011-09-16 12:12:13

Gr3yFox
Plugin Author
From: Genova, Italy
Registered: 2007-06-18
Posts: 42
Website

Re: fox_code - A bridge to the powerful GeSHi syntax highlighter

Sure, no problem. Can you switch for a brief moment to debug mode (instead of live) from administration -> preferences and see which errors shows up in the page with the sql code please? That could be really helpful to solve your problem.

edit: just to be on the safe side, is the plugin enabled? :) Which version of geshi did you install, 1.0.8.10 (the latest stable)?

Last edited by Gr3yFox (2011-09-16 12:15:43)


Gr3yFox

Offline

#24 2011-09-16 19:57:37

Gr3yFox
Plugin Author
From: Genova, Italy
Registered: 2007-06-18
Posts: 42
Website

Re: fox_code - A bridge to the powerful GeSHi syntax highlighter

@sgreener: please tell me more details about your problem. I just made some checks, and fox_code works correctly for me up to GeSHi-1.0.8.10. There must be some error in your installation.


Gr3yFox

Offline

Board footer

Powered by FluxBB