[Geany-Users] setup custom server-side tags

2013-05-02 Thread Charles Johannisen

Hi,

I would like to know how I can setup the syntax highlighter to recognize 
a custom server-side tag like the PHP ? ? or ASP % %


Thanks
--
http://www.tray-international.com
--
___
Users mailing list
Users@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/users


Re: [Geany-Users] setup custom server-side tags

2013-05-02 Thread Lex Trotman
On 2 May 2013 16:09, Charles Johannisen 
charles.johanni...@tray-international.com wrote:

 Hi,

 I would like to know how I can setup the syntax highlighter to recognize a
 custom server-side tag like the PHP ? ? or ASP % %


This is done in the HTML Lexer (LexHTML.cxx) from the Scintilla project,
which is written in C++, so you need to modify that to recognise your tags.

Cheers
Lex




 Thanks
 --**
 http://www.tray-international.**com http://www.tray-international.com
 --**
 __**_
 Users mailing list
 Users@lists.geany.org
 https://lists.geany.org/cgi-**bin/mailman/listinfo/usershttps://lists.geany.org/cgi-bin/mailman/listinfo/users

___
Users mailing list
Users@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/users


[Geany-Users] script to delete currently viewed document

2013-05-02 Thread paur...@gmail.com
-- in case anyone finds it helpful, here is a script to delete from disk
-- the document currently being viewed, which is something that some of
-- the other text editors out there have a button or menu command for
local keys_to_read, path, code, alerts, gloss, i, j
geany.banner = Lua Script: Close and unlink
i = 60
if (geany.count ()  0) then
 path = geany.filename ()
 keys_to_read = geany.fileinfo ()
else
 path = nil
 keys_to_read = nil
end
if ((path == nil) or (keys_to_read == nil) or (keys_to_read[changed])) then
 alerts = No saved document to unlink
elseif (keys_to_read[readonly]) then
 alerts = Read-only document cannot be unlinked
else
 gloss = (Unlink \ .. path) .. \?
 j = string.len (gloss)
 if (j  i) then j = i end
 alerts = gloss .. (\n .. string.rep (_, j))
 if (geany.confirm ( , alerts, false)) then
   geany.close ()
   code, alerts = os.remove (path)
   if (code) then
 alerts = (Unlinked \ .. path) ..\
   else
 if (alerts == nil) then gloss =unknown OS error else gloss = alerts end
 alerts = (Unable to unlink \ .. path) .. ((\ (  .. gloss) .. ))
   end
 else
   alerts =  end
end
j = string.len (alerts)
if j  0 then
 if (j  i) then j = i end
 geany.message (alerts .. (\n .. string.rep (_, j)))
end
___
Users mailing list
Users@lists.geany.org
https://lists.geany.org/cgi-bin/mailman/listinfo/users