You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although imports itself are colored, the elements exposed are not. This makes the code look very "monotonic".
Example of what I'm saying. Html.Events is highlighted, but the onClick is not. I would appreciate if I could modulate the color of these exposed functions.
In text format:
importHtmlexposing (..)
importHtml.Attributesexposing (..)
importHtml.Eventsexposing (onClick)
importRandomurlPrefix:StringurlPrefix ="http://elm-in-action.com/"type Msg=ClickedPhotoString|ClickedSizeThumbnailSize|ClickedSurpriseMeview:Model->HtmlMsgview model =
div [ class "content"][ h1 [][ text "Photo Groove"], button [Html.Events.onClick ClickedSurpriseMe][ text "Surprise Me!"]]
Also, self-made functions and imported ones could have close colors, but slightly different.
Maybe to be considered in the same vein: self-declared variables, like urlPrefix in my code, which has color only when being declared, but not in the code itself. Local and global variables in a file could be colored with slightly different colors.
As it is, my code is monotonically white... These two excerpts-images I linked have both examples of all the things I mentioned, urlPrefix, model, onClick etc.
In text format:
view:Model->HtmlMsgview model =
div [ class "content"][ h1 [][ text "Photo Groove"], button [Html.Events.onClick ClickedSurpriseMe][ text "Surprise Me!"], h3 [][ text "Thumbnail Size:"], div [ id "choose-size"](List.map viewSizeChooser [Small,Medium,Large]), div [ id "thumbnails", class (sizeToString model.chosenSize)](List.map (viewThumbnail model.selectedUrl) model.photos), img
[ class "large", src (urlPrefix ++"large/"++ model.selectedUrl)][]]
The text was updated successfully, but these errors were encountered:
I don't think it would be practical to get into any colouring that would require semantic analysis. Presumably you'd want "onClick" to be highlighted the same whether it was imported qualified or unqualified, and that would be hard!
Although imports itself are colored, the elements exposed are not. This makes the code look very "monotonic".
Example of what I'm saying.
Html.Events
is highlighted, but theonClick
is not. I would appreciate if I could modulate the color of these exposed functions.In text format:
Also, self-made functions and imported ones could have close colors, but slightly different.
Maybe to be considered in the same vein: self-declared variables, like
urlPrefix
in my code, which has color only when being declared, but not in the code itself. Local and global variables in a file could be colored with slightly different colors.As it is, my code is monotonically white... These two excerpts-images I linked have both examples of all the things I mentioned,
urlPrefix
,model
,onClick
etc.In text format:
The text was updated successfully, but these errors were encountered: