* Earth stage requires same SQL related code to work on at least one more DBMS type other than SQLight.
* PostgreSQL is most likelly candidate as MySQL is not easy to install for the average user.
* Developing and adopting to MySQL or any other system is not prerogative, as it works well as it is with inbuild simplicity.
+* Provide markdown text functionality to html pages. For quick vanila plain documentation.
+* ✔ Implement title bolding on logs using markdown, so tags can be avoided, for multiline logs.
### v.2.0 SUN RC2 Encountered
sudo cpan Switch;
sudo cpan IPC::Run
sudo cpan Syntax::Keyword::Try;
+sudo cpan Text::Markdown
#Install DBI module
sudo cpan DBI;
$log =~ s/<<LIST<(\w*|\s*)*.*(>+?)/$sub/o;
$tagged = 1;
}
-
+ #bold on start markup
+ $log =~ s/(^\*)(.*)(\*)(\\n)/<b>\2<\/b><br>/oi;
#Decode escaped \\n
$log =~ s/\r\n/<br>/gs;
$log =~ s/\\n/<br>/gs;
+
+
if ( $CID_EVENT == $row[1] ) {
$log = "<font color='#eb4848' style='font-weight:bold'>$log</font>";
--- /dev/null
+#!/usr/bin/perl
+# Programed by: Will Budic
+# Open Source License -> https://choosealicense.com/licenses/isc/
+#
+use strict;
+use warnings;
+
+use Syntax::Keyword::Try;
+use DateTime;
+use CGI;
+use Text::Markdown 'markdown';
+
+my $cgi = CGI->new;
+my $file = $cgi->param('file');
+ $file = qq(../../Current Development Check List.md) if(!$file);
+
+try{
+
+open my $fh, '<', $file or die "Can't open file $!";
+read $fh, my $file_content, -s $fh;
+my $html = markdown($file_content);
+ print $cgi->header, "<DIV style='padding:10px'>\n$html\n</DIV>", $cgi->end_html;
+exit;
+}
+catch{
+ my $err = $@;
+ print $cgi->header,
+ "<font color=red><b>SERVER ERROR</b></font> on ".DateTime->now."<pre> $err\n$file</pre>";
+ print $cgi->end_html;
+}
\ No newline at end of file
#no warnings 'uninitialized';
use Switch;
-use CGI::Pretty ":standard";
+#use CGI::Pretty ":standard";
use CGI::Session '-ip_match';
use DBI;
use DateTime;