HTML and XML
Browse and link (browseAndLink.bsh v20-Mar-05 by Pavel Štětina and Jean-François Magni)
Submitted by Tuesday, 2 November, 2004 - 13:16
on
(If this macro doesn't work using the macro manager, download it directly from http://community.jedit.org/?q=filestore/browse/39).
This macro opens a file browser in order to insert links with relative path in an html file. It can be used for linking html, pdf, images, shortcut icons, style sheet files and Javascript files. For images, "width" an "height" in pixel are added. If html files are selected in the file browser, the anchors and id's of this file are listed in a dialog window. It is also possible to edit existing tags (e.g., img) and much more.
Updated on 03/20/2005 - 11:22
Downloads: 2458
Date Tag Buddy (Date_Tag_Buddy.bsh v0.2 by Ralf Kintrup)
Submitted by Tuesday, 7 March, 2006 - 11:12
on
[READ THIS USING THE MACRO MANAGER]
Updates certain date value tags in an HTML buffer (the current edit mode must be "html"):
1. Updates the date value of a modification
date tag:
Last modified: 01 Mar 2006
2. Updates the year in a copyright text:
© Me 2006
Updates all "includes" in an HTML buffer. An include is defined as two HTML comments where the first one contains the path to a file that should be inserted between the comments:
The path can be relative, as in the example, or absolute. Included files may contain date tags.
The date tag and "include" updates can be automatically updated when the buffer is saved. Therefore install Ollie Rutherfurd's ActionHooks plugin (http://plugins.jedit.org/plugins/?ActionHooks) and set it up:
1. Add the Date Tag Buddy macro to the
"BufferUpdate.SAVED" event list.
2. Configure the ActionHooks plugin to start up
with JEdit.
This ensures that date tags and "includes" are automatically updated whenever the HTML buffer is saved.
A modification tag is identified by and . A copyright text is identified by © and . The macro assumes that the date value is located at the end of each tag. To change the default behavior of the macro you can modify the constants at its end.
Checked for jEdit 4.3pre3 API.
Updated on 03/15/2006 - 06:47
Downloads: 1793
Hypertext Link (Hypertext_Link.bsh v0.1 by Vojtech Broz (vojtech.broz@email.cz))
Submitted by Monday, 26 July, 2004 - 10:43
on
This BeanShell macro creates an HTML anchor (<A HREF="">...</A> tag) for a URL selected in a buffer. Also gets the HTML page title from the web and puts it into the tag body. Requires the jTidy plugin.
Updated on 07/27/2004 - 10:36
Downloads: 1946
Make Scriptlet (Make_Scriptlet.bsh v1.0 by Tomasz Peszor)
Submitted by Thursday, 7 August, 2008 - 08:19
on
Macro for creating valid HTML bookmarklets.
Compress JavaScript to one line of code, removing newline characters and other whitespaces in the current buffer or selection.
Makes the text appropriate for use as a JavaScript bookmarklet.
Based on Make_Bookmarklet.bsh by delvinj, but my version produces valid HTML source.
Updated on 08/07/2008 - 08:40
Downloads: 1194
Replace HTML/XML tags (Replace_Tags.bsh v1.0 by De Franciscis Dimitri megadix@gmail.com)
Submitted by Wednesday, 7 September, 2005 - 13:59
on
Replace an HTML/XML tag with another, preserving all the rest:
- attributes (even with incorrect syntax)
- whitespace
- character data
Updated on 09/08/2005 - 13:42
Downloads: 4169
Saxon file chooser (saxon_chooser.bsh v1.0 by Dan Wasson)
Submitted by Wednesday, 31 October, 2012 - 18:45
on
very simple macro to choose an xml file, then an xsl file, then run saxon on them in console.
I'm trying to learn xslt 2 and needed a 'repl' for trying a bunch examples from websites.
there are currently several sites that do transforms via xslt 1.0, but I can't find one for xslt 2.0, hence saxon (saxon9he).
maybe todo : add *.xml and *.xsl filters
Updated on 10/31/2012 - 18:45
Downloads: 1036
Validate HTML (check_html1.bsh v1.00 by Lars Naber)
Submitted by Wednesday, 28 January, 2004 - 12:02
on
A Beanshell macro to check html files with an external software using the Console plugin.
You have to change the path to the checker in the macro for your needs.
Updated on 02/05/2004 - 07:47
Downloads: 1913
There are 480 downloads in our database