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