Not logged in. · Lost password · Register

Search posts

Search for Display as
Order
Date from until Format: D.M.Y Search in forum
You can combine words with " or exclude them with -. Example: "nice weather" -rain

Search result (11)

topic: DW Syntax for White Space  in the forum: General Help and Support Syntax and Usage
Avatar
courtland #1
Member since Mar 2015 · 90 posts · Location: USA
Group memberships: Members
Show profile · Link to this post
Just thinking out of the box here, I briefly went through our plugins looking for a snipper and came across https://www.dokuwiki.org/plugin:xssnipper Plugin.
Here is what I propose, you could use code snipper to configure a button in the tool bar that will bring in "&nbsp" at the click of an icon on the tool bar.
topic: <code> as shortcut (How can I realize to select code more faster)  in the forum: General Help and Support Syntax and Usage
Avatar
Taggic (Moderator) #2
Member since Jan 2011 · 777 posts · Location: Gilching, Germany
Group memberships: Global Moderators, Members
Show profile · Link to this post
In reply to post ID 36825
Possibly I'm wrong, but if you edit a page, mark the lines you want to turn into code snipped then you can just use one of the quickbuttons "TT". Please check Toolbar for description.

If that is not sufficient you may use a plugin like xssnipper. That delivers further code-buttons to this toolbar.

If you are not interested into xssnipper features you might want to use a button plugin and define the substitution yourself.
e.g. codebutton_ext or search the others (e.g. codebutton2, custombuttons)
best regards
Taggic
f-con wiki: http://www.fristercons.de/fcon/
topic: Menü in DokuWiki einfügen  in the forum: Non-English Discussion German discussion
Avatar
Taggic (Moderator) #3
Member since Jan 2011 · 777 posts · Location: Gilching, Germany
Group memberships: Global Moderators, Members
Show profile · Link to this post
In reply to post ID 36562
Lege dazu im Verzeichnis dokuwiki\data\pages eine Datei mit dem Namen sidebar.txt an. In dieser kannst Du manuell Deine Links eintragen (DokuWiki Syntax !). Further you have to configure the parameter sidebar with value sidebar.

Beispiel:
====== Navigation ======
~~NOCACHE~~
**DokuWiki Plugins** \\
- [[issuetracker:descr|Issue Tracker]] \\
- [[orphanmedia:descr|Orphanmedia]] \\
- [[rater:descr|Rater]] \\
- [[langdelete:descr|LangDelete]] \\
- [[topbarsyntax:descr|TopBar Menu]] \\
- [[news:descr|NEWS System]] \\ 
- [[xssnipper:xssnipper|xsSnipper]] \\
- [[removeold:start|RemoveOld]]\\
- [[xsstockview:start|xsStockView]]\\
- [[wip:start|wip]]\\
best regards
Taggic
f-con wiki: http://www.fristercons.de/fcon/
topic: Collapsible Code blocks  in the forum: General Help and Support Plugins Plugin Wishlist
Avatar
Desh #4
Member since Jun 2012 · 4 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 33308
Tested with your example snippet:
{(xssnipper>,1,php test slide,
// 1. check if $xssnipper['filepath'] exist, else error message
   if(!file_exists($xssnipper['filepath'])) {
      msg('file '.$xssnipper['filepath'].' not found',-1);
      return false;
   }
)}

Using 'Release 2012-01-25a "Angua"' on a QuickPHP server, same results with standard and dokubook template. The example snippet is the only thing on a new page of the wiki. Nothing is visible.
topic: Collapsible Code blocks  in the forum: General Help and Support Plugins Plugin Wishlist
Avatar
Taggic (Moderator) #5
Member since Jan 2011 · 777 posts · Location: Gilching, Germany
Group memberships: Global Moderators, Members
Show profile · Link to this post
In reply to post ID 33307
if the code block created with xssnipper would show up at all

As you can see on my homepage (xssnipper Description - Standard Code snipped) it is working.
I would need some further information, to solve your issue.

1. Please describe the behavior, attach the complete syntax you are using and attach a screen shot (if something is visible).
2. Does you wrap around some other syntax plugins like wrap or box ?
3. Further information necessary to find the root cause could be:
  - DokuWiki Version
  - used Template
best regards
Taggic
f-con wiki: http://www.fristercons.de/fcon/
topic: Collapsible Code blocks  in the forum: General Help and Support Plugins Plugin Wishlist
Avatar
Desh #6
Member since Jun 2012 · 4 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 33240
Oh, sorry, for some reason I thought it was mandatory to use an external file. Tried it out just now. Would probably work perfectly - if the code block created with xssnipper would show up at all :)
topic: Collapsible Code blocks  in the forum: General Help and Support Plugins Plugin Wishlist
Avatar
Taggic (Moderator) #7
Member since Jan 2011 · 777 posts · Location: Gilching, Germany
Group memberships: Global Moderators, Members
Show profile · Link to this post
In reply to post ID 33239
I would have liked something where I don't have to use separate files for the code
There is no need to use a file it is just one use case. You may insert the code directly into the syntax as described.
The following syntax does apply:  
{(xssnipper>,[start line],[code language] [code block file] [slider] ,[ code ])}
where [code language] [code block file] [slider] are optional and
[ code ] is the snipped you want to show.

Is it possible to actually edit the code using xssnipper?
Only by modification of the [ code ] snipped via DokuWiki Editor.

that works exactly like the code-tag in the current DokuWiki-version, just collapsible
Where do you see the diff except to have more features ?
best regards
Taggic
f-con wiki: http://www.fristercons.de/fcon/
topic: Collapsible Code blocks  in the forum: General Help and Support Plugins Plugin Wishlist
Avatar
Desh #8
Member since Jun 2012 · 4 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 33123
Thanks. I would have liked something where I don't have to use separate files for the code, but still, thanks. My only question: Is it possible to actually edit the code using xssnipper? Otherwise, it's useless to me... What I was looking for was something that works exactly like the code-tag in the current DokuWiki-version, just collapsible...
topic: Collapsible Code blocks  in the forum: General Help and Support Plugins Plugin Wishlist
Avatar
Taggic (Moderator) #9
Member since Jan 2011 · 777 posts · Location: Gilching, Germany
Group memberships: Global Moderators, Members
Show profile · Link to this post
In reply to post ID 33112
You could xssnipper give a try.
best regards
Taggic
f-con wiki: http://www.fristercons.de/fcon/
topic: <code> block as rounded with shadow ?  in the forum: General Help and Support Templates and Layout
Avatar
Taggic (Moderator) #10
Member since Jan 2011 · 777 posts · Location: Gilching, Germany
Group memberships: Global Moderators, Members
Show profile · Link to this post
In reply to post ID 30589
similar to: http://www.fristercons.de/fcon/dok…?id=xssnipper:xssnipper ?

That is done by css:
      border-radius:               5px;
      box-shadow:         3px 3px #CECECE;
best regards
Taggic
f-con wiki: http://www.fristercons.de/fcon/
This post was edited on 2012-02-03, 12:21 by Taggic.
topic: Request-response protocol formatting  in the forum: General Help and Support Plugins Plugin Wishlist
Avatar
Taggic (Moderator) #11
Member since Jan 2011 · 777 posts · Location: Gilching, Germany
Group memberships: Global Moderators, Members
Show profile · Link to this post
In reply to post ID 30257
The information is already stored to a log by a sniffer ?

If the plugin should read this info offline from a log you may use already existing plugins e.g.:
http://www.dokuwiki.org/plugin:xssnipper?s[]=xssnipper
or simply the DW provided <code> syntax.

Remark: both ways you have to specify the snipped either by file-path+start/end line (xssnipper) or the content itself (code)

Please specify a bit more what the plugin should do, e.g.:
- read a files content
- differ between send/receive patterns
- output send/receive with diff colours, e.g. as a table + icons
=> not that complicated to develop


see attachment for example plugin
example initiated by following DW page syntax: {(xsviewlog>,,,)}

more complex
  - prevent doubles, filter for events
  - any other anlysis ?
best regards
Taggic
f-con wiki: http://www.fristercons.de/fcon/
The author has attached one file to this post:
xsviewlog.zip 5.9 kBytes
You have no permission to open this file.
This post was edited 3 times, last on 2012-01-24, 11:47 by Taggic.
Close Smaller – Larger + Reply to this post:
Special characters:
Special queries
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2018-11-16, 21:17:30 (UTC +01:00)