Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
syntaxHighlighter plugin
#1
Simple plugin highlight your source code.


SyntaxHighlighter is a fully functional self-contained code syntax highlighter for different Programing Languages. Libary source http://alexgorbatchev.com/SyntaxHighlighter/
Reply
#2
bogyvet Wrote:Simple plugin highlight your source code.


SyntaxHighlighter is a fully functional self-contained code syntax highlighter for different Programing Languages. Libary source http://alexgorbatchev.com/SyntaxHighlighter/


I will test it, as I did integrate it into one of my test-installations at www.urbanistan.de/getsimple already
and was wondering how to use as a plugin

My main concern is that the necessary JS-files will only be loaded when needed and will not be loaded in all pages,

I will check out! THanks for your effort!

PS: when you decide to upload it to the EXTEND-section here after some tests, please use ZIP-format and not rar, as this will avoid confusion ;=)
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#3
1) name of plugin should be "Syntax Highlighter" and not "Syntax Highlighterr" with double r ?

3) no info how to use it, when it is uploaded into /plugins, instead I get

Quote:Notice: Undefined variable: SITEURL in /var/www/web10/html/getsimple/plugins/syntaxHighlighter.php on line 37

Notice: Undefined variable: SITEURL in /var/www/web10/html/getsimple/plugins/syntaxHighlighter.php on line 38

Notice: Undefined variable: SITEURL in /var/www/web10/html/getsimple/plugins/syntaxHighlighter.php on line 39

Is this a plugin for GetSimple or a plugin for CKEDITOR?

I remember I integrated the highlighter as CKEDitor-Plugin not as GS Plugin, see here:
http://www.urbanistan.de/getsimple/syntax-1

so do us a favor and describe how to use that plugin and add a readme to the your files

Cheers, Connie
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#4
I know for CK Editor Highlight implementation I implement it in mine site. This is plugin just for Front End use If you use this feature just include this plugin and your Highlight will work.
Reply
#5
I still not get the difference to the CKEditor-plugin

please explain and please give info how to use it

Cheers, Connie
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#6
It's a highlighter script for code snippets that you show on pages in the front end – site visitors see the highlighting. See the source site link in the first post for a demonstration and instructions.
--
Nick.
Reply
#7
I know the principle, but I still don't know what is the difference to the integrated script in the editor, the texts on the frontpage are formatted as well if I do that in the editor,

see here: http://www.urbanistan.de/getsimple/konfi...highlight/

Cheers, Connie
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#8
Ah, I thought it was strange that you didn't know what a code highlighter is! Undecided
Connie Wrote:the texts on the frontpage are formatted as well if I do that in the editor,
So, you probably don't need this plugin ...
--
Nick.
Reply
#9
Well I guess I didn't follow instructions I found on some topic to and add script to template header. There are people that are not programing guru. And this is easy way. But anyway as always I always see arrogance. If you want to GETSIMPLE grown you must leave arrogance behind you.

Be kind to community members help them that is key. End user do not care if you are perfect coder, they just need functionality and help. Have patience and as I see GETSIMPLE have great future.

If not GETSIMPLE will finish as e107.
Reply
#10
Sorry, that you see my repeated questions as arrogance

this is not my intention.

I think I must not repeat my argumentation, just trying to make clear that I asked repeatedly because I wondered why you made this plugin and in what point it differs from the editor implementation

you did not answer my question in a way that I understood it. That is not arrogance, that might be my lacking intelligence or whatever, but I am far from arrogance.

If I ware arrogant, I would not contribute in a forum at all, I would keep my knowledge (and questions) for me and share nothing with others.

So please, let us come back to the original topic and please try to explain

what is the difference between a general plugin and the editor-implementation
what are the pro and cons ?
|--

Das deutschsprachige GetSimple-(Unter-)Forum:   http://get-simple.info/forums/forumdisplay.php?fid=18
Reply
#11
Connie Wrote:what is the difference between a general plugin and the editor-implementation
what are the pro and cons ?
It's up to the user to decide what the pros and cons are for a given plugin. I don't see that the plugin author has to justify his work at all, beyond "This scratched my itch, this is what it does, you may find it useful, too."

Does it duplicate a similar feature for CKEditor? Quite probably, from a front-end visitor view. So what? It's a different way to get the same result – choice.

Connie Wrote:If I ware arrogant, I would not contribute in a forum at all, I would keep my knowledge (and questions) for me and share nothing with others.
I'm afraid what you write often appears to be arrogant, though I am sure it is not intended that way.
--
Nick.
Reply
#12
OK as I see this post about Highlighter

Quote:http://get-simple.info/forum/post/11340/#p11340

I think yours Connie.

Quote:- you need to load the original Syntaxhighlighter Script from
http://alexgorbatchev.com/SyntaxHighlig … iguration/

I uploaded it to admin/templates/js/syntaxhighligter

- the best would be to create a special template for pages with code and add this to the header.

Quote:- after the content in the template, you must add:

<script type="text/javascript">
SyntaxHighlighter.all()
</script>

in your template

I think that is not SIMPLE but this call it whatever you want plugin I wrote. You can skip this steps. You do not need to modify template file that is purpose of this plugin. And I think this is an easy way.

About:
Quote:If I ware arrogant, I would not contribute in a forum at all, I would keep my knowledge (and questions) for me and share nothing with others.

I think that contribution and arrogance have nothing in common. Arrogance is attitude in relations with other people and have nothing in common with other person characteristics. I know a lot of people that are excellent persons but arrogance make that people think they are not.
Reply




Users browsing this thread: 1 Guest(s)