Skip to content

Code Formatting #82

@robertmain

Description

@robertmain

It would be great if RFM supported formatted code snippets like GFM. So that

const buildselecthtml = (options, selected) => 
    $.map(options, option => 
        '<option ' + ((option.id === selected) ? ' selected="selected" ' : '') + ' value="' + option.id + '">' + option.name + '</option>')
    .join('');

Could become

const buildselecthtml = (options, selected) => 
    $.map(options, option => 
        '<option ' + ((option.id === selected) ? ' selected="selected" ' : '') + ' value="' + option.id + '">' + option.name + '</option>')
    .join('');

Which is a great deal easier to read

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions