Hello Scite-interest,
I bring to your attention the script.
I'm waiting for your offers and remarks.
Font_Changer.lua:
> ================================================
-- The best alternative Ctrl+F11.
-- Operates simultaneously on all buffers
-- It is possible to set any combinations of fonts
-- mozers™
------------------------------------------------
if props["font.set"] ~= "1" then
props["font.base"] = props["font.1.base"]
props["font.small"] = props["font.1.small"]
props["font.comment"] = props["font.1.comment"]
props["font.set"] = "1"
else
props["font.base"] = props["font.0.base"]
props["font.small"] = props["font.0.small"]
props["font.comment"] = props["font.0.comment"]
props["font.set"] = "0"
end
> ================================================
Add in .properties file:
> ================================================
# Add Tools menu
command.name.48.*=Font Changer
command.48.*=dofile $(SciteDefaultHome)\tools\Font_Changer.lua
command.mode.48.*=subsystem:lua,savebefore:no
command.shortcut.48.*=Ctrl+F11
if PLAT_WIN
# First set of fonts - monospace (replaces 2st set after pressing on Ctrl+F11)
font.0.base=font:Lucida Console,size:10
font.0.small=font:Lucida Console,size:8
font.0.comment=font:Courier New,size:9,italics
# Second set of fonts - proportional (replaces 1st set after pressing on
Ctrl+F11)
font.1.base=font:Verdana,size:10
font.1.small=font:Microsoft Sans Serif,size:8
font.1.comment=font:Comic Sans MS,size:8
# Set a set of fonts which will be used by default
font.base=$(font.0.base)
font.small=$(font.0.small)
font.comment=$(font.0.comment)
# Only for old files language *.properties used this value
font.monospace=$(font.base)
> ================================================
--
mozers
<http://scite.ruteam.ru>
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest