diff --git a/Changelog b/Changelog
index c2c6eae..2deb2e0 100644
--- a/Changelog
+++ b/Changelog
@@ -1,3 +1,12 @@
+================================================================================
+1.2.3:
+ADDED: if FormatText is enabled one can now use a new special format
+ tag: //. If a text is surrounded by two slashes, i.e.: //blah//
+ then it appears "invisible" by using blue forground and blue
+ background color for displaying. This is handy for passwords
+ since no nobody can grab you password by looking at your
+ monitor, but you can copy&paste it.
+
================================================================================
1.2.2:
FIXED: oneliner note entries caused breaked displaying in interactive
diff --git a/README b/README
index 1468cca..641953f 100644
--- a/README
+++ b/README
@@ -1,4 +1,4 @@
-note 1.2.2 by Thomas Linden, 04/03/2003
+note 1.2.3 by Thomas Linden, 08/03/2003
=======================================
Introduction
@@ -202,4 +202,4 @@ and I'll add you.
Last changed
============
-04/03/2003
+08/03/2003
diff --git a/TODO b/TODO
index 67f7393..b03055a 100644
--- a/TODO
+++ b/TODO
@@ -4,4 +4,9 @@
- ncurses support
- readline/editline support for interactive prompt
- with: completion and history
\ No newline at end of file
+ with: completion and history
+
+- LOCKing support, so that multiple people can use
+ note simultaneously while not interfering with
+ each other
+
diff --git a/VERSION b/VERSION
index 23aa839..0495c4a 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-1.2.2
+1.2.3
diff --git a/bin/note b/bin/note
index df97da2..3573a65 100755
--- a/bin/note
+++ b/bin/note
@@ -126,7 +126,7 @@ $TIME_COLOR = "blue";
$TOPIC_COLOR = "bold";
$TOPIC = 1;
$TopicSep = '/';
-$version = "1.2.2";
+$version = "1.2.3";
if ($TOPIC) {
$CurDepth = 1; # the current depth inside the topic "directory" structure...
}
@@ -178,6 +178,7 @@ $AUTO_CLEAR = "YES";
'whiteI' => '7;37',
'white_black' => '40;37;01',
'bold' => ';01',
+ 'hide' => '44;34'
);
#
@@ -1181,18 +1182,22 @@ sub format {
# make text bold/underlined/inverse using current $NOTEC
my($note) = @_;
if ($FormatText) {
- my $BN = uc($NOTEC);
+ # prepare colors to be used for replacement
+ my $BN = uc($NOTEC);
my $_BN = uc($_NOTEC);
my $UN = $NOTEC;
- $UN =~ s/<(.*)>/<$1_>/;
+ $UN =~ s/<(.*)>/<$1_>/;
my $_UN = $UN;
- $_UN =~ s/<(.*)>/<\/$1>/;
- my $IN = $NOTEC; my $_IN = $_NOTEC;
- $IN =~ s/<(.*)>/<$1I>/;
- $_IN =~ s/<(.*)>/<$1I>/;
+ $_UN =~ s/<(.*)>/<\/$1>/;
+ my $IN = $NOTEC;
+ my $_IN = $_NOTEC;
+ $IN =~ s/<(.*)>/<$1I>/;
+ $_IN =~ s/<(.*)>/<$1I>/;
+
$note =~ s/\*\*([^\*^\*]*)\*\*/$BN$1$_BN/g;
$note =~ s/__([^_^_]*)__/$UN$1$_UN/g;
$note =~ s/{{([^}^}]*)}}/$IN$1$_IN/g;
+ $note =~ s#//([^/^/]*)//#$1#g;
}
$note =~ s/(<\/.*>)/$1$NOTEC/g;
$note;
diff --git a/note.pod b/note.pod
index 32849a8..0d9e8d3 100644
--- a/note.pod
+++ b/note.pod
@@ -447,10 +447,12 @@ character. Here are the available things, you can do:
bold: **word**
underlined:__word__
inverse:{{word}}
+ hidden: //word//
The text will be formatted using the actually note-color.
-
+The hidden formatting will use blue forground and blue background
+to hide a string from the terminal, which is usefull for passwords.
=head1 ENCRYPTION
@@ -503,6 +505,6 @@ Thomas Linden
=head1 VERSION
-1.2.2 (04/03/2003)
+1.2.3 (08/03/2003)
=cut