Skip to content

run(window, code) should support JSONText #154

@hhaensel

Description

@hhaensel

Currently run() for Electron windows is defined as

function Base.run(win::Window, code::AbstractString)
# <...>
end

It would be great to also support JSONText, as that would allow for js-Syntax-Highlighting in VS-Code

Base.run(w::Window, code::JSON.JSONText) = run(w, JSON.json(code))

run(win, js"""
    console.log('This looks pretty!')
""")
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions