Support Forum
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.
YELLOW
SWORDFISH
|
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.
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!
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,
YELLOW
SWORDFISH
|
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!
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.
YELLOW
SWORDFISH
|
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.
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.
YELLOW
SWORDFISH
|
1 Guest(s)