Skip to content

Commit

Permalink
red: Syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
hugeping committed Nov 8, 2023
1 parent 77bf2c8 commit c2e485e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions data/apps/red.lua
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,10 @@ function framemenu.cmd:Spaces(nr)
self.frame:win().conf.spaces_tab = true
end

function framemenu.cmd:Syntax()
self.frame:win().conf.syntax = not self.frame:win().conf.syntax
end

function framemenu.cmd:Put()
local b = self.frame:win()
if not b then
Expand Down Expand Up @@ -787,6 +791,7 @@ Note:
Tab [nr] - tab on for current bufferr
Wrap - wrap text on/off
Spaces - spaces tab mode
Syntax - toggle syntax hl
dump - hex-dump
win - pseudo acme win
Expand Down Expand Up @@ -875,6 +880,10 @@ function mainmenu.cmd:New() -- Newcol
self.frame:refresh()
end

function mainmenu.cmd:Syntax()
conf.syntax = not conf.syntax
end

local mainwin = frame:new()

function mainwin:update()
Expand Down

0 comments on commit c2e485e

Please sign in to comment.