Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Is there a list os syntaxes which are supportedby Syntax Highlighter?
Avatar
Peter Kriegel
Germany
Member
Free Members
sp_UserOfflineSmall Offline
Dec 11, 2013 - 12:53 pm

Is there a list of syntaxes which are supported by Syntax Highlighter?

I need Syntax Highlighter for the "Windows PowerShell" Script Syntax!

Is it supported?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 11, 2013 - 1:06 pm

I believe we already answered this question in an email exchange not very many days ago... and said at the time that we were not familiar with this language.

Supported languages that can be added in are here: http://www.codeotaku.com/proje.....ples/index

As I understand it - and I have not tried OR looked at the code - adding a new one is probably not that complicated.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Peter Kriegel
Germany
Member
Free Members
sp_UserOfflineSmall Offline
Dec 13, 2013 - 7:12 am

Yellow Swordfish said
I believe we already answered this question in an email exchange not very many days ago... and said at the time that we were not familiar with this language.

@Yellow Swordfish

Please bear with me, because it is hard for me to find the correct words in English!

Thank you for the answer (again ;-) ) but the email exchange was not very understandable and it was lacking alternatives or suggestions like how to add syntaxes by my self.

Even in the E-Mail i asked If I could use the Wordpress Crayon Syntax Highlighter Plugin.

The person who replies to my mail was miss leaded that Crayon is even a Syntax.

Because I drive a Windows PowerShell Community it is essential that the user can do posts with Windows PowerShell Code Syntax. The Crayon Syntax Highlighter is doing this job very well.

But my research here in the Forum showed that Crayon Syntax Highlighter Plugin is not supported by Simple:Press!?

At the moment I can not jump into your given link because I sit behind a Proxy.

Will come back after I have investigated the Link

cheers Peter!

 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 13, 2013 - 7:33 am

The link was to the website of the author of the syntax highlighter WordPress plugin that we use - written by Sam Williams. Specifically I linked to the page showing which languages are currently supported. You can actually get this list on the forum admin > options > content settings panel by clicking on the help button.

As to the 'Crayon Highlighter' plugin then I have not encountered it before so have not tried it. I assume like most syntax highlighter plugins it requires the code to be placed in divs with very specific class attributes.

I do not know what your JavaScript and CSS skills are like but if you look at the script and css files for our highlighter plugin you will see that it is fairly simplistic as long as you understand the syntax of the target language - so it should be possible to construct support.

I am not sure but there may even be help ot at l;east some advice on Sam's website about this,

 

andy-signature.png
YELLOW
SWORDFISH
Avatar
Peter Kriegel
Germany
Member
Free Members
sp_UserOfflineSmall Offline
Dec 13, 2013 - 8:59 am

Yellow Swordfish said

As to the 'Crayon Highlighter' plugin then I have not encountered it before so have not tried it. I assume like most syntax highlighter plugins it requires the code to be placed in divs with very specific class attributes.

NO! You can use only simple <pre> Code </pre> and the highlighter works with the syntax which is set to default ;-) or you Provide the name of the syntax inside the pre tags. You can even use the html code tag. But pre is prefered by Crayon.

I do not know what your JavaScript and CSS skills are like but if you look at the script and css files for our highlighter plugin you will see that it is fairly simplistic as long as you understand the syntax of the target language - so it should be possible to construct support.

I am not sure but there may even be help ot at l;east some advice on Sam's website about this,

 

If I had the Time to write all code in the world by myself ... I would do!
And I would write my own Forum Software so I do not need to by some.
I need ready to use solutions!

Please do not take it to hard, but if you like to earn money with your business I think you have to satisfy your customers.

And I think to post Code in a Forum is a often used case!?

The Syntax highlighter is no longer maintained from Sam Williams:

See here: http://wordpress.org/plugins/j.....ry-syntax/

This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

And here are reported bugs with newer Wordpress versions: http://www.buschmann23.de/2013.....gin-fixes/

An old and obsolete plugin is not what i am looking for!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 13, 2013 - 9:13 am

It is certainly less than 2 years since Sam bought out an update and don't forget we use his core code which we have adapted for Simple:Press and which we maintain. It's age has no relevance. It works just fine. It also uses just the 'pre' tags but with a class.

I am sorry we do not support the specific language you want. However - we DO support all of the most common languages which satisfies probably 99% of our users who post code fragments. So I think we are well covered at this point in time. This is the first ever request for this particular platform. If we get others - or many of them - then we will consider adding in support.

So what is special or different about this language? Might one of the currently supported languages be easily adapted? This is, after all, often the case. Perhaps even usually the case.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Peter Kriegel
Germany
Member
Free Members
sp_UserOfflineSmall Offline
Dec 16, 2013 - 3:24 am

Yellow Swordfish said
It is certainly less than 2 years since Sam bought out an update and don't forget we use his core code which we have adapted for Simple:Press and which we maintain. It's age has no relevance. It works just fine. It also uses just the 'pre' tags but with a class.

The tribal wisdom of the Dakota Indians—passed on from generation to generation—says that when you discover that you are riding a dead horse, the best strategy is to dismount.

In my point of view you have 2 ways to go here.

1. you take over this piece of software an you offer full support for this.

I did not found a good "how to" to make my own custom Brush. So you have taken over this software do you have a good documentation how to create new custom brushes? So that this Horse can stay alive in the future?

Inside the other files of brushes I saw that there is only a simple and silly approach to declare any kind of syntax Words by make an endless list of the words.
There seams no good support for Regular Expressions to declare Keyword patterns or real syntax parsing.

So there is a lack of flexibility.

2. dismount from this dead horse and mount to a living one.

As an alternative I suggest you saddle on the active maintained SyntaxHighlighter from Alex Gorbatchev.
This one is also based on javascript and is well documented.
It is well supported by a large Community and has a Wordpress plugin:

http://wordpress.org/plugins/s.....ghlighter/

Yellow Swordfish said
So what is special or different about this language? Might one of the currently supported languages be easily adapted? This is, after all, often the case. Perhaps even usually the case.

It is a complete new Syntax. A mixture from C#, DOS, Pearl and Phyton.

PowerShell is the new syntax for use inside the Windows console and in Windows Scripts!

So this it is not a less used Syntax.

PowerShell has not a fixed set of commands!

The commands (even the commands which comes in the future) are having a Verb dash Noun Pattern. So I need a good support of Regular Expressions or a real parsing support inside the syntax brush to recognize this pattern!  Not a dim-witted endless list of words!

It is not my intension to bother you! It is only my intension to have a working piece of software.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 16, 2013 - 4:46 am

As to (1) then as already stated - we do 'own' our version of the plugin and support it.

(2) We have no plans to change horses. Not a great idea mid-stream.

And - as also already stated - if we get more and multiple requests for a new language then consideration to add it will be taken and acted upon.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625