pablohirafuji / elm-syntax-highlight Goto Github PK
View Code? Open in Web Editor NEWSyntax highlighting in Elm
Home Page: http://package.elm-lang.org/packages/pablohirafuji/elm-syntax-highlight/latest
License: Apache License 2.0
Syntax highlighting in Elm
Home Page: http://package.elm-lang.org/packages/pablohirafuji/elm-syntax-highlight/latest
License: Apache License 2.0
Amazing project. However the supported language list is extremely limited. I would love to see Go lang supported.
Hi thank you for creating this project!
We would like to use it in our product (Humio) for our own language. Could you include a License file so we can include it please. We would prefer Apache 2.0 if you have no preference.
/Thomas
In the example file, you have import SyntaxHighlight.Theme as Theme
on line 11.
But this won't work, because SyntaxHighlight.Theme
has not been exposed (and so it won't be able to find this module).
One straightforward fix is to add SyntaxHighlight.Theme
in the list of exposed modules
But looking at the structure of the package, I don't think so if this is a good solution?!
As you can see in the first line of this example provided, the xml
function is currently incorrectly highlighting XML declarations, which are part of the official XML 1.0 standards.
Hey! I'd love to use this library in a site built with elm-css. Do you have any ideas about how to support that? I wonder if something like ConsoleOptions
would work for all custom rendering:
viewCustom :
{ default : String -> a
, style1 : String -> a -- the rest of styleN would be the same
, highlight : a -> a -- assuming that the code being highlighted also needs to be separately rendered
, addition : a -> a
, deletion : a -> a
}
-> HCode
-> a
Shouldn't be too hard, since Lua is deliberately a quite simple language.
The package looks awesome but I am mainly concerned about rendering Lisp code for which the support is currently missing.
I am creating this RFE because I think it is a good idea to make it public but I am interested in writing the support myself if nobody else volunteers :-)
as you've maybe heard, a new version of elm has been released. this upgrade doc mentions, "elm-tools/elm-parser
moved to elm/parser
..."
i started to try this out. several items imported from Parser
are no longer exposed, including Count(..), oneOrMore, ignore, zeroOrMore, fail, source, delayedCommit
. at this point, the example in the docs isn't even up to date, so it may be too early to worry about upgrading this package.
i mostly wanted to get this on your radar, and document what i've found so far. hope you're doing well!
Hello,
I tried using this package in a somewhat unconventional way, essentially I am using it to highlight an elm Record (so not source code). When run on larger strings, my browser throws an exception telling me that the maximum call stack is exceeded. I've pasted the record that I'm trying to parse at the end of this message. Here is a demo of what I tried to use it for (leave everything as is and hit submit): https://ryan-senn.github.io/stellar-elm/#/endpoints/all-effects
Essentially I want to highlight a json response parsed to an elm record.
Please let me know if I can help in any way, as I ended up using javascript instead, and I would obviously prefer to use elm for this :)
Ok (Success { embedded_ = { records = [AccountCreated { id = "0000010157597659137-0000000001" , pagingToken = "10157597659137-1" , type_ = "account_created" , typeI = 0 , account = "GBS43BF24ENNS3KPACUZVKK2VYPOZVBQO2CISGZ777RYGOPYC2FT6S3K" , startingBalance = "50000000.0000000" , createdAt = <Tue Mar 21 2017 05:50:52 GMT+1000 (Australian Eastern Standard Time )> , links = { operation = { href = "https://horizon-testnet.stellar.org/operations/10157597659137" , templated = False } , succeeds = { href = "https://horizon-testnet.stellar.org/effects?order=desc&cursor=10157597659137-1" , templated = False } , precedes = { href = "https://horizon-testnet.stellar.org/effects?order=asc&cursor=10157597659137-1" , templated = False } } } ,AccountDebited { id = "0000010157597659137-0000000002" , pagingToken = "10157597659137-2" , type_ = "account_debited" , typeI = 3 , account = "GBRPYHIL2CI3FNQ4BXLFMNDLFJUNPU2HY3ZMFSHONUCEOASW7QC7OX2H" , assetType = Native , amount = "50000000.0000000" , createdAt = <Tue Mar 21 2017 05:50:52 GMT+1000 (Australian Eastern Standard Time )> , links = { operation = { href = "https://horizon-testnet.stellar.org/operations/10157597659137" , templated = False } , succeeds = { href = "https://horizon-testnet.stellar.org/effects?order=desc&cursor=10157597659137-2" , templated = False } , precedes = { href = "https://horizon-testnet.stellar.org/effects?order=asc&cursor=10157597659137-2" , templated = False } } } ,SignerCreated { id = "0000010157597659137-0000000003" , pagingToken = "10157597659137-3" , type_ = "signer_created" , typeI = 10 , account = "GBS43BF24ENNS3KPACUZVKK2VYPOZVBQO2CISGZ777RYGOPYC2FT6S3K" , weight = 1 , publicKey = "GBS43BF24ENNS3KPACUZVKK2VYPOZVBQO2CISGZ777RYGOPYC2FT6S3K" , key = "" , createdAt = <Tue Mar 21 2017 05:50:52 GMT+1000 (Australian Eastern Standard Time )> , links = { operation = { href = "https://horizon-testnet.stellar.org/operations/10157597659137" , templated = False } , succeeds = { href = "https://horizon-testnet.stellar.org/effects?order=desc&cursor=10157597659137-3" , templated = False } , precedes = { href = "https://horizon-testnet.stellar.org/effects?order=asc&cursor=10157597659137-3" , templated = False } } } ,AccountCreated { id = "0000010157597659138-0000000001" , pagingToken = "10157597659138-1" , type_ = "account_created" , typeI = 0 , account = "GDO34SQXVOSNODK7JCTAXLZUPSAF3JIH4ADQELVIKOQJUWQ3U4BMSCSH" , startingBalance = "10000.0000000" , createdAt = <Tue Mar 21 2017 05:50:52 GMT+1000 (Australian Eastern Standard Time )> , links = { operation = { href = "https://horizon-testnet.stellar.org/operations/10157597659138" , templated = False } , succeeds = { href = "https://horizon-testnet.stellar.org/effects?order=desc&cursor=10157597659138-1" , templated = False } , precedes = { href = "https://horizon-testnet.stellar.org/effects?order=asc&cursor=10157597659138-1" , templated = False } } } ,AccountDebited { id = "0000010157597659138-0000000002" , pagingToken = "10157597659138-2" , type_ = "account_debited" , typeI = 3 , account = "GBRPYHIL2CI3FNQ4BXLFMNDLFJUNPU2HY3ZMFSHONUCEOASW7QC7OX2H" , assetType = Native , amount = "10000.0000000" , createdAt = <Tue Mar 21 2017 05:50:52 GMT+1000 (Australian Eastern Standard Time )> , links = { operation = { href = "https://horizon-testnet.stellar.org/operations/10157597659138" , templated = False } , succeeds = { href = "https://horizon-testnet.stellar.org/effects?order=desc&cursor=10157597659138-2" , templated = False } , precedes = { href = "https://horizon-testnet.stellar.org/effects?order=asc&cursor=10157597659138-2" , templated = False } } } ,SignerCreated { id = "0000010157597659138-0000000003" , pagingToken = "10157597659138-3" , type_ = "signer_created" , typeI = 10 , account = "GDO34SQXVOSNODK7JCTAXLZUPSAF3JIH4ADQELVIKOQJUWQ3U4BMSCSH" , weight = 1 , publicKey = "GDO34SQXVOSNODK7JCTAXLZUPSAF3JIH4ADQELVIKOQJUWQ3U4BMSCSH" , key = "" , createdAt = <Tue Mar 21 2017 05:50:52 GMT+1000 (Australian Eastern Standard Time )> , links = { operation = { href = "https://horizon-testnet.stellar.org/operations/10157597659138" , templated = False } , succeeds = { href = "https://horizon-testnet.stellar.org/effects?order=desc&cursor=10157597659138-3" , templated = False } , precedes = { href = "https://horizon-testnet.stellar.org/effects?order=asc&cursor=10157597659138-3" , templated = False } } } ,AccountCreated { id = "0000010157597659139-0000000001" , pagingToken = "10157597659139-1" , type_ = "account_created" , typeI = 0 , account = "GAAJKG3WQKHWZJ5RGVVZMVV6X3XYU7QUH2YVATQ2KBVR2ZJYLG35Z65A" , startingBalance = "10000.0000000" , createdAt = <Tue Mar 21 2017 05:50:52 GMT+1000 (Australian Eastern Standard Time )> , links = { operation = { href = "https://horizon-testnet.stellar.org/operations/10157597659139" , templated = False } , succeeds = { href = "https://horizon-testnet.stellar.org/effects?order=desc&cursor=10157597659139-1" , templated = False } , precedes = { href = "https://horizon-testnet.stellar.org/effects?order=asc&cursor=10157597659139-1" , templated = False } } } ,AccountDebited { id = "0000010157597659139-0000000002" , pagingToken = "10157597659139-2" , type_ = "account_debited" , typeI = 3 , account = "GBRPYHIL2CI3FNQ4BXLFMNDLFJUNPU2HY3ZMFSHONUCEOASW7QC7OX2H" , assetType = Native , amount = "10000.0000000" , createdAt = <Tue Mar 21 2017 05:50:52 GMT+1000 (Australian Eastern Standard Time )> , links = { operation = { href = "https://horizon-testnet.stellar.org/operations/10157597659139" , templated = False } , succeeds = { href = "https://horizon-testnet.stellar.org/effects?order=desc&cursor=10157597659139-2" , templated = False } , precedes = { href = "https://horizon-testnet.stellar.org/effects?order=asc&cursor=10157597659139-2" , templated = False } } } ,SignerCreated { id = "0000010157597659139-0000000003" , pagingToken = "10157597659139-3" , type_ = "signer_created" , typeI = 10 , account = "GAAJKG3WQKHWZJ5RGVVZMVV6X3XYU7QUH2YVATQ2KBVR2ZJYLG35Z65A" , weight = 1 , publicKey = "GAAJKG3WQKHWZJ5RGVVZMVV6X3XYU7QUH2YVATQ2KBVR2ZJYLG35Z65A" , key = "" , createdAt = <Tue Mar 21 2017 05:50:52 GMT+1000 (Australian Eastern Standard Time )> , links = { operation = { href = "https://horizon-testnet.stellar.org/operations/10157597659139" , templated = False } , succeeds = { href = "https://horizon-testnet.stellar.org/effects?order=desc&cursor=10157597659139-3" , templated = False } , precedes = { href = "https://horizon-testnet.stellar.org/effects?order=asc&cursor=10157597659139-3" , templated = False } } } ,AccountCreated { id = "0000010157597659140-0000000001" , pagingToken = "10157597659140-1" , type_ = "account_created" , typeI = 0 , account = "GCNP7JE6KR5CKHMVVFTZJUSP7ALAXWP62SK6IMIY4IF3JCHEZKBJKDZF" , startingBalance = "10000.0000000" , createdAt = <Tue Mar 21 2017 05:50:52 GMT+1000 (Australian Eastern Standard Time )> , links = { operation = { href = "https://horizon-testnet.stellar.org/operations/10157597659140" , templated = False } , succeeds = { href = "https://horizon-testnet.stellar.org/effects?order=desc&cursor=10157597659140-1" , templated = False } , precedes = { href = "https://horizon-testnet.stellar.org/effects?order=asc&cursor=10157597659140-1" , templated = False } } } ,AccountDebited { id = "0000010157597659140-0000000002" , pagingToken = "10157597659140-2" , type_ = "account_debited" , typeI = 3 , account = "GBRPYHIL2CI3FNQ4BXLFMNDLFJUNPU2HY3ZMFSHONUCEOASW7QC7OX2H" , assetType = Native , amount = "10000.0000000" , createdAt = <Tue Mar 21 2017 05:50:52 GMT+1000 (Australian Eastern Standard Time )> , links = { operation = { href = "https://horizon-testnet.stellar.org/operations/10157597659140" , templated = False } , succeeds = { href = "https://horizon-testnet.stellar.org/effects?order=desc&cursor=10157597659140-2" , templated = False } , precedes = { href = "https://horizon-testnet.stellar.org/effects?order=asc&cursor=10157597659140-2" , templated = False } } } ,SignerCreated { id = "0000010157597659140-0000000003" , pagingToken = "10157597659140-3" , type_ = "signer_created" , typeI = 10 , account = "GCNP7JE6KR5CKHMVVFTZJUSP7ALAXWP62SK6IMIY4IF3JCHEZKBJKDZF" , weight = 1 , publicKey = "GCNP7JE6KR5CKHMVVFTZJUSP7ALAXWP62SK6IMIY4IF3JCHEZKBJKDZF" , key = "" , createdAt = <Tue Mar 21 2017 05:50:52 GMT+1000 (Australian Eastern Standard Time )> , links = { operation = { href = "https://horizon-testnet.stellar.org/operations/10157597659140" , templated = False } , succeeds = { href = "https://horizon-testnet.stellar.org/effects?order=desc&cursor=10157597659140-3" , templated = False } , precedes = { href = "https://horizon-testnet.stellar.org/effects?order=asc&cursor=10157597659140-3" , templated = False } } } ,AccountCreated { id = "0000010157597659141-0000000001" , pagingToken = "10157597659141-1" , type_ = "account_created" , typeI = 0 , account = "GDNFUWF2EO4OWXYLI4TDEH4DXUCN6PB24R6XQW4VATORK6WGMHGRXJVB" , startingBalance = "10000.0000000" , createdAt = <Tue Mar 21 2017 05:50:52 GMT+1000 (Australian Eastern Standard Time )> , links = { operation = { href = "https://horizon-testnet.stellar.org/operations/10157597659141" , templated = False } , succeeds = { href = "https://horizon-testnet.stellar.org/effects?order=desc&cursor=10157597659141-1" , templated = False } , precedes = { href = "https://horizon-testnet.stellar.org/effects?order=asc&cursor=10157597659141-1" , templated = False } } } ,AccountDebited { id = "0000010157597659141-0000000002" , pagingToken = "10157597659141-2" , type_ = "account_debited" , typeI = 3 , account = "GBRPYHIL2CI3FNQ4BXLFMNDLFJUNPU2HY3ZMFSHONUCEOASW7QC7OX2H" , assetType = Native , amount = "10000.0000000" , createdAt = <Tue Mar 21 2017 05:50:52 GMT+1000 (Australian Eastern Standard Time )> , links = { operation = { href = "https://horizon-testnet.stellar.org/operations/10157597659141" , templated = False } , succeeds = { href = "https://horizon-testnet.stellar.org/effects?order=desc&cursor=10157597659141-2" , templated = False } , precedes = { href = "https://horizon-testnet.stellar.org/effects?order=asc&cursor=10157597659141-2" , templated = False } } } ,SignerCreated { id = "0000010157597659141-0000000003" , pagingToken = "10157597659141-3" , type_ = "signer_created" , typeI = 10 , account = "GDNFUWF2EO4OWXYLI4TDEH4DXUCN6PB24R6XQW4VATORK6WGMHGRXJVB" , weight = 1 , publicKey = "GDNFUWF2EO4OWXYLI4TDEH4DXUCN6PB24R6XQW4VATORK6WGMHGRXJVB" , key = "" , createdAt = <Tue Mar 21 2017 05:50:52 GMT+1000 (Australian Eastern Standard Time )> , links = { operation = { href = "https://horizon-testnet.stellar.org/operations/10157597659141" , templated = False } , succeeds = { href = "https://horizon-testnet.stellar.org/effects?order=desc&cursor=10157597659141-3" , templated = False } , precedes = { href = "https://horizon-testnet.stellar.org/effects?order=asc&cursor=10157597659141-3" , templated = False } } } ] } , links_ = { self = { href = "https://horizon-testnet.stellar.org/effects?cursor=&limit=15&order=asc" , templated = False } , prev = { href = "https://horizon-testnet.stellar.org/effects?cursor=10157597659137-1&limit=15&order=desc" , templated = False } , next = { href = "https://horizon-testnet.stellar.org/effects?cursor=10157597659141-3&limit=15&order=asc" , templated = False } } } )Ok (Success { embedded_ = { records = [AccountCreated { id = "0000010157597659137-0000000001" , pagingToken = "10157597659137-1" , type_ = "account_created" , typeI = 0 , account = "GBS43BF24ENNS3KPACUZVKK2VYPOZVBQO2CISGZ777RYGOPYC2FT6S3K" , startingBalance = "50000000.0000000" , createdAt = <Tue Mar 21 2017 05:50:52 GMT+1000 (Australian Eastern Standard Time )> , links = { operation = { href = "https://horizon-testnet.stellar.org/operations/10157597659137" , templated = False } , succeeds = { href = "https://horizon-testnet.stellar.org/effects?order=desc&cursor=10157597659137-1" , templated = False } , precedes = { href = "https://horizon-testnet.stellar.org/effects?order=asc&cursor=10157597659137-1" , templated = False } } } ,AccountDebited { id = "0000010157597659137-0000000002" , pagingToken = "10157597659137-2" , type_ = "account_debited" , typeI = 3 , account = "GBRPYHIL2CI3FNQ4BXLFMNDLFJUNPU2HY3ZMFSHONUCEOASW7QC7OX2H" , assetType = Native , amount = "50000000.0000000" , createdAt = <Tue Mar 21 2017 05:50:52 GMT+1000 (Australian Eastern Standard Time )> , links = { operation = { href = "https://horizon-testnet.stellar.org/operations/10157597659137" , templated = False } , succeeds = { href = "https://horizon-testnet.stellar.org/effects?order=desc&cursor=10157597659137-2" , templated = False } , precedes = { href = "https://horizon-testnet.stellar.org/effects?order=asc&cursor=10157597659137-2" , templated = False } } } ,SignerCreated { id = "0000010157597659137-0000000003" , pagingToken = "10157597659137-3" , type_ = "signer_created" , typeI = 10 , account = "GBS43BF24ENNS3KPACUZVKK2VYPOZVBQO2CISGZ777RYGOPYC2FT6S3K" , weight = 1 , publicKey = "GBS43BF24ENNS3KPACUZVKK2VYPOZVBQO2CISGZ777RYGOPYC2FT6S3K" , key = "" , createdAt = <Tue Mar 21 2017 05:50:52 GMT+1000 (Australian Eastern Standard Time )> , links = { operation = { href = "https://horizon-testnet.stellar.org/operations/10157597659137" , templated = False } , succeeds = { href = "https://horizon-testnet.stellar.org/effects?order=desc&cursor=10157597659137-3" , templated = False } , precedes = { href = "https://horizon-testnet.stellar.org/effects?order=asc&cursor=10157597659137-3" , templated = False } } } ,AccountCreated { id = "0000010157597659138-0000000001" , pagingToken = "10157597659138-1" , type_ = "account_created" , typeI = 0 , account = "GDO34SQXVOSNODK7JCTAXLZUPSAF3JIH4ADQELVIKOQJUWQ3U4BMSCSH" , startingBalance = "10000.0000000" , createdAt = <Tue Mar 21 2017 05:50:52 GMT+1000 (Australian Eastern Standard Time )> , links = { operation = { href = "https://horizon-testnet.stellar.org/operations/10157597659138" , templated = False } , succeeds = { href = "https://horizon-testnet.stellar.org/effects?order=desc&cursor=10157597659138-1" , templated = False } , precedes = { href = "https://horizon-testnet.stellar.org/effects?order=asc&cursor=10157597659138-1" , templated = False } } } ,AccountDebited { id = "0000010157597659138-0000000002" , pagingToken = "10157597659138-2" , type_ = "account_debited" , typeI = 3 , account = "GBRPYHIL2CI3FNQ4BXLFMNDLFJUNPU2HY3ZMFSHONUCEOASW7QC7OX2H" , assetType = Native , amount = "10000.0000000" , createdAt = <Tue Mar 21 2017 05:50:52 GMT+1000 (Australian Eastern Standard Time )> , links = { operation = { href = "https://horizon-testnet.stellar.org/operations/10157597659138" , templated = False } , succeeds = { href = "https://horizon-testnet.stellar.org/effects?order=desc&cursor=10157597659138-2" , templated = False } , precedes = { href = "https://horizon-testnet.stellar.org/effects?order=asc&cursor=10157597659138-2" , templated = False } } } ,SignerCreated { id = "0000010157597659138-0000000003" , pagingToken = "10157597659138-3" , type_ = "signer_created" , typeI = 10 , account = "GDO34SQXVOSNODK7JCTAXLZUPSAF3JIH4ADQELVIKOQJUWQ3U4BMSCSH" , weight = 1 , publicKey = "GDO34SQXVOSNODK7JCTAXLZUPSAF3JIH4ADQELVIKOQJUWQ3U4BMSCSH" , key = "" , createdAt = <Tue Mar 21 2017 05:50:52 GMT+1000 (Australian Eastern Standard Time )> , links = { operation = { href = "https://horizon-testnet.stellar.org/operations/10157597659138" , templated = False } , succeeds = { href = "https://horizon-testnet.stellar.org/effects?order=desc&cursor=10157597659138-3" , templated = False } , precedes = { href = "https://horizon-testnet.stellar.org/effects?order=asc&cursor=10157597659138-3" , templated = False } } } ,AccountCreated { id = "0000010157597659139-0000000001" , pagingToken = "10157597659139-1" , type_ = "account_created" , typeI = 0 , account = "GAAJKG3WQKHWZJ5RGVVZMVV6X3XYU7QUH2YVATQ2KBVR2ZJYLG35Z65A" , startingBalance = "10000.0000000" , createdAt = <Tue Mar 21 2017 05:50:52 GMT+1000 (Australian Eastern Standard Time )> , links = { operation = { href = "https://horizon-testnet.stellar.org/operations/10157597659139" , templated = False } , succeeds = { href = "https://horizon-testnet.stellar.org/effects?order=desc&cursor=10157597659139-1" , templated = False } , precedes = { href = "https://horizon-testnet.stellar.org/effects?order=asc&cursor=10157597659139-1" , templated = False } } } ,AccountDebited { id = "0000010157597659139-0000000002" , pagingToken = "10157597659139-2" , type_ = "account_debited" , typeI = 3 , account = "GBRPYHIL2CI3FNQ4BXLFMNDLFJUNPU2HY3ZMFSHONUCEOASW7QC7OX2H" , assetType = Native , amount = "10000.0000000" , createdAt = <Tue Mar 21 2017 05:50:52 GMT+1000 (Australian Eastern Standard Time )> , links = { operation = { href = "https://horizon-testnet.stellar.org/operations/10157597659139" , templated = False } , succeeds = { href = "https://horizon-testnet.stellar.org/effects?order=desc&cursor=10157597659139-2" , templated = False } , precedes = { href = "https://horizon-testnet.stellar.org/effects?order=asc&cursor=10157597659139-2" , templated = False } } } ,SignerCreated { id = "0000010157597659139-0000000003" , pagingToken = "10157597659139-3" , type_ = "signer_created" , typeI = 10 , account = "GAAJKG3WQKHWZJ5RGVVZMVV6X3XYU7QUH2YVATQ2KBVR2ZJYLG35Z65A" , weight = 1 , publicKey = "GAAJKG3WQKHWZJ5RGVVZMVV6X3XYU7QUH2YVATQ2KBVR2ZJYLG35Z65A" , key = "" , createdAt = <Tue Mar 21 2017 05:50:52 GMT+1000 (Australian Eastern Standard Time )> , links = { operation = { href = "https://horizon-testnet.stellar.org/operations/10157597659139" , templated = False } , succeeds = { href = "https://horizon-testnet.stellar.org/effects?order=desc&cursor=10157597659139-3" , templated = False } , precedes = { href = "https://horizon-testnet.stellar.org/effects?order=asc&cursor=10157597659139-3" , templated = False } } } ,AccountCreated { id = "0000010157597659140-0000000001" , pagingToken = "10157597659140-1" , type_ = "account_created" , typeI = 0 , account = "GCNP7JE6KR5CKHMVVFTZJUSP7ALAXWP62SK6IMIY4IF3JCHEZKBJKDZF" , startingBalance = "10000.0000000" , createdAt = <Tue Mar 21 2017 05:50:52 GMT+1000 (Australian Eastern Standard Time )> , links = { operation = { href = "https://horizon-testnet.stellar.org/operations/10157597659140" , templated = False } , succeeds = { href = "https://horizon-testnet.stellar.org/effects?order=desc&cursor=10157597659140-1" , templated = False } , precedes = { href = "https://horizon-testnet.stellar.org/effects?order=asc&cursor=10157597659140-1" , templated = False } } } ,AccountDebited { id = "0000010157597659140-0000000002" , pagingToken = "10157597659140-2" , type_ = "account_debited" , typeI = 3 , account = "GBRPYHIL2CI3FNQ4BXLFMNDLFJUNPU2HY3ZMFSHONUCEOASW7QC7OX2H" , assetType = Native , amount = "10000.0000000" , createdAt = <Tue Mar 21 2017 05:50:52 GMT+1000 (Australian Eastern Standard Time )> , links = { operation = { href = "https://horizon-testnet.stellar.org/operations/10157597659140" , templated = False } , succeeds = { href = "https://horizon-testnet.stellar.org/effects?order=desc&cursor=10157597659140-2" , templated = False } , precedes = { href = "https://horizon-testnet.stellar.org/effects?order=asc&cursor=10157597659140-2" , templated = False } } } ,SignerCreated { id = "0000010157597659140-0000000003" , pagingToken = "10157597659140-3" , type_ = "signer_created" , typeI = 10 , account = "GCNP7JE6KR5CKHMVVFTZJUSP7ALAXWP62SK6IMIY4IF3JCHEZKBJKDZF" , weight = 1 , publicKey = "GCNP7JE6KR5CKHMVVFTZJUSP7ALAXWP62SK6IMIY4IF3JCHEZKBJKDZF" , key = "" , createdAt = <Tue Mar 21 2017 05:50:52 GMT+1000 (Australian Eastern Standard Time )> , links = { operation = { href = "https://horizon-testnet.stellar.org/operations/10157597659140" , templated = False } , succeeds = { href = "https://horizon-testnet.stellar.org/effects?order=desc&cursor=10157597659140-3" , templated = False } , precedes = { href = "https://horizon-testnet.stellar.org/effects?order=asc&cursor=10157597659140-3" , templated = False } } } ,AccountCreated { id = "0000010157597659141-0000000001" , pagingToken = "10157597659141-1" , type_ = "account_created" , typeI = 0 , account = "GDNFUWF2EO4OWXYLI4TDEH4DXUCN6PB24R6XQW4VATORK6WGMHGRXJVB" , startingBalance = "10000.0000000" , createdAt = <Tue Mar 21 2017 05:50:52 GMT+1000 (Australian Eastern Standard Time )> , links = { operation = { href = "https://horizon-testnet.stellar.org/operations/10157597659141" , templated = False } , succeeds = { href = "https://horizon-testnet.stellar.org/effects?order=desc&cursor=10157597659141-1" , templated = False } , precedes = { href = "https://horizon-testnet.stellar.org/effects?order=asc&cursor=10157597659141-1" , templated = False } } } ,AccountDebited { id = "0000010157597659141-0000000002" , pagingToken = "10157597659141-2" , type_ = "account_debited" , typeI = 3 , account = "GBRPYHIL2CI3FNQ4BXLFMNDLFJUNPU2HY3ZMFSHONUCEOASW7QC7OX2H" , assetType = Native , amount = "10000.0000000" , createdAt = <Tue Mar 21 2017 05:50:52 GMT+1000 (Australian Eastern Standard Time )> , links = { operation = { href = "https://horizon-testnet.stellar.org/operations/10157597659141" , templated = False } , succeeds = { href = "https://horizon-testnet.stellar.org/effects?order=desc&cursor=10157597659141-2" , templated = False } , precedes = { href = "https://horizon-testnet.stellar.org/effects?order=asc&cursor=10157597659141-2" , templated = False } } } ,SignerCreated { id = "0000010157597659141-0000000003" , pagingToken = "10157597659141-3" , type_ = "signer_created" , typeI = 10 , account = "GDNFUWF2EO4OWXYLI4TDEH4DXUCN6PB24R6XQW4VATORK6WGMHGRXJVB" , weight = 1 , publicKey = "GDNFUWF2EO4OWXYLI4TDEH4DXUCN6PB24R6XQW4VATORK6WGMHGRXJVB" , key = "" , createdAt = <Tue Mar 21 2017 05:50:52 GMT+1000 (Australian Eastern Standard Time )> , links = { operation = { href = "https://horizon-testnet.stellar.org/operations/10157597659141" , templated = False } , succeeds = { href = "https://horizon-testnet.stellar.org/effects?order=desc&cursor=10157597659141-3" , templated = False } , precedes = { href = "https://horizon-testnet.stellar.org/effects?order=asc&cursor=10157597659141-3" , templated = False } } } ] } , links_ = { self = { href = "https://horizon-testnet.stellar.org/effects?cursor=&limit=15&order=asc" , templated = False } , prev = { href = "https://horizon-testnet.stellar.org/effects?cursor=10157597659137-1&limit=15&order=desc" , templated = False } , next = { href = "https://horizon-testnet.stellar.org/effects?cursor=10157597659141-3&limit=15&order=asc" , templated = False } } } )ฮฉ
I am writing something in which it would be really neat if support for highlighting java code were to be built in. There is more I can do for awhile before I am forced to tackle it myself (and I will make a PR if I do), but I figured there wasn't much harm in asking in the meantime.
Hi there!
Is there any plans to support syntax highlight for JSON source-codes?
For an open source project I am working on it would be useful to have a generic option when the language is unknown.
I think this could be a common use case and would help users to keep the flow of their program tidy, not having to patch in code and styling that has to be manually updated if changes occur after updates of elm-syntax-highlight.
I can implement it myself if you'd like.
Per the JSON specification, numbers can be in exponential notation, such as 6.0221409E23.
However, the JSON formatter does not handle this properly, as seen in the screenshot below:
First of all I want to thank you for great package ๐. I haven't tested it in any project yet but it looks awesome. I started working on something similar but I haven't had enough time to finish it.
It will be a great fit for elm-codepress (use arrows if you want to test it out).
I was thinking if it's possible to be compatible with highlight.js themes. They have very reach library of them and it's as simple as adding required .css
file in <head>
even from CDN.
I would be more than happy to contribute to this project ๐
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.