crazy-max / dokuwiki-plugin-syntaxhighlighter4 Goto Github PK
View Code? Open in Web Editor NEWSyntaxHighlighter4 plugin for DokuWiki
Home Page: http://bit.ly/2vfZ9jG
License: Other
SyntaxHighlighter4 plugin for DokuWiki
Home Page: http://bit.ly/2vfZ9jG
License: Other
Hello! )
Can you please add an icon in text editor? It will be very useful.
Hi
How can I add new brush to plugin in a simplest way? I do not want to contribute to the project (for now), but I want to add new brush quckly
Thanks
In the code plugin it was possible to download the code by using <code py program.py> </code>
That would be nice to have the ability to download the code snipet as a file.
Could you add ODT support to syntaxhighlighter? Now code dissaperars from odt when you export the page. See https://www.dokuwiki.org/plugin:odt:rendersupport#odt_initiative
Hi,
While using the demo code for syntaxhighlighter provided in readme page on Playground , When I click preview received the below error -
Forbidden
You don't have permission to access /doku.php on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
PS:I already changed the permission to 0755 for all the files.
What should I do now?
Is there a way to add button for this on the WYSIWYG editor toolbar?
If I have a block on a page:
<sxh> testing123 </sxh>
When searching dokuwiki for "testing123", the page will appear in the search results. Upon clicking the link from the search results to the page, the following in the sxh block of the rendered page:
<span class="search_hit">testing123</span>
Dokuwiki is effectively attempting to highlight the string that it found in the sxh code block. However, instead of rendering the HTML code, it is just printing it to the screen.
When the last line contains underscores, they get cut off. For example,
my_item.do_something_with_it(5);
looks like
my item.do something with it(5);
It looks like the line height is just that little bit too small. The problem doesn't appear in any lines above the last, though. I've tested it on Firefox and Chromium (both using Bitstream Vera Sans Mono as font).
An example like follows:
<sxh bash; gutter: off; title: Ping scan 10.11.0.1 subnet> nmap -sn 10.11.0.1/24</sxh>
Is rendering a block with numbers on
Is it possible to copy the functionality from the <code></code>
syntax shipped with Dokuwiki so that when clicking on the title of a codeblock the whole code gets downloaded as a file (filename = title of code block) ?
Hello,
When I try to save some bash code to a dokuwiki page, I get an error on this specific line:
spawn sed -i "/$host/d" /root/.ssh/known_hosts
Is there a way to bypass this?
Kind regards,
John
It would be create to have a chance to only highlight a section of a line e.g. column 20 to 30. This is useful to clearly indicate portions of a code to alter. For example using current highlight option the following extension to the syntax shall work:
highlight: [10, 20-30]
<- to highlight complete lineshighlight: [10:5-10, 20-30:13-17]
<- to highlight column 5 to ten in line 10 and column 13 to 17 in each line from 20 to 30 (like a block 'select')The plugin seems to be incompatible with the vector template.
Example page:
http://docs.loginet.ru/api:auth.svc:login
Plugin installed OK, highlighing not displayed(
I wonder if there is a way to use the formatted view also in conjunction with the dw2pdf https://www.dokuwiki.org/plugin:dw2pdf plugin.
Could you add an option to override the default Geshi highlighter? Another addon (Code Prettifier) does this, and it helps because you can get the syntax highlighted in the actual code mirror (of course it will still only highlight what Geshi supports—but at least most languages will be highlighted). It would also make it easier to switch between Geshi and your addon if technical difficulties emerge with either.
thanks
Thanks for your work on syntaxhighlighter4.
Though c++ brush can temporarily highlight go syntax,
It would be happy to have complete go lang brush.
Cheers.
It seems that the plugin has some difficulties to detect begin and end of string in a powershell code.
example : https://www.shyrkasystem.com/doku.php?id=powershell_usedspace
Al line 60, the plugin detect string opening at the second ", not at the first...
Hello!
After installing I have next errors
Warning: Declaration of syntax_plugin_syntaxhighlighter4::handle($match, $state, $pos, Doku_Handler &$handler) should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler) in C:\xampp\htdocs\dokuwiki\lib\plugins\syntaxhighlighter4\syntax.php on line 199
Warning: Declaration of syntax_plugin_syntaxhighlighter4::render($mode, Doku_Renderer &$renderer, $data) should be compatible with DokuWiki_Syntax_Plugin::render($format, Doku_Renderer $renderer, $data) in C:\xampp\htdocs\dokuwiki\lib\plugins\syntaxhighlighter4\syntax.php on line 199
Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\dokuwiki\lib\plugins\syntaxhighlighter4\syntax.php:199) in C:\xampp\htdocs\dokuwiki\inc\actions.php on line 210
Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\dokuwiki\lib\plugins\syntaxhighlighter4\syntax.php:199) in C:\xampp\htdocs\dokuwiki\lib\tpl\dokuwiki\main.php on line 12
I think I because PHP7.
Can you fix it please.
Is it possible to add some option to round the corners of the code box please? This is really less aggressive with corners, thanks.
Please see https://rtfm.kojukination.com/start for an example of this.
I've spent some time in the inspector trying to figure out what's going on, and the short of it is the container div seems to be just one pixel short of not needing the scrollbar. For example, if you go to my example page and inspect it, you'll probably see the container div like so...
<div class="syntaxhighlighter powershell" >
The inspector tells me that its height is 240px, and I see the scrollbar. If I use the inspector to change the code to...
<div class="syntaxhighlighter powershell" style="height:241px">
...the scrollbar will go away.
Unfortunately my CSS-foo is not strong enough to dissect all the existing style-sheet settings and figure out what is contributing to this extra pixel that doesn't fit. But I hope you can figure it out.
Otherwise I love your plugin and look forward to making use if it in my wiki. I'm just really OCD about that scrollbar :(
Thanks!
Hello,
after a fresh install of dokuwiki and only this plugin installed, now I have this error trying to access my wiki:
Parse error: syntax error, unexpected '[' in /lib/plugins/syntaxhighlighter4/action.php on line 41
I have PHP Version 5.3.27
Thank you for this great plugin.
It would be nice if it could override <file>
as well as <code>
.
Also if it could parse the dokuwiki code and file syntax titles that would be awesome, as I wouldn't have to rewrite anything.
Reference: Downloadable Code Blocks
<code bash TITLE></code>
<file bash TITLE></file>
Hello!
Unfortunately, when I go to admin page
/doku.php?id=user:admin&do=admin
There are 2 mistakes ((
Warning: Declaration of syntax_plugin_catlist::handle($match, $state, $pos, &$handler) should be compatible with DokuWiki_Syntax_Plugin::handle($match, $state, $pos, Doku_Handler $handler) in C:\xampp\htdocs\dokuwiki\lib\plugins\catlist\syntax.php on line 334
Warning: Declaration of syntax_plugin_catlist::render($mode, &$renderer, $data) should be compatible with DokuWiki_Syntax_Plugin::render($format, Doku_Renderer $renderer, $data) in C:\xampp\htdocs\dokuwiki\lib\plugins\catlist\syntax.php on line 334
Hi. Is is possible, to show the code with line wrapping at the end of the container (no scrolling)?
I have tried a couple of brushes I wanted to use like bash and cpp and I always get the following error:
Uncaught Error: Brush wasn't configured for html-script option: bash
at new HtmlScript (syntaxhighlighter.js:3414)
at Object.highlight (syntaxhighlighter.js:217)
at syntaxhighlighter.js:101
at HTMLDocument.listener (syntaxhighlighter.js:5296)
Other brushes like php for example render fine without an issue.
Is this possible?
I got a "shBrushClojure.js" from
https://wordpress.org/plugins/wp-syntaxhighlighter/
.
After that, I modified ../dist/syntaxhighlighter.js, but it didn't work as I wanted. :(
What should I do?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.