Skip to content

Including "Show hidden lines" when using #include & anchor #1289

Open
@Blisto91

Description

@Blisto91

When including parts of a file with #include and anchor is it possible to enable the "show hidden lines" button without showing the whole file as in #rustdoc_include ?
Something along the lines of

// More code

//ANCHOR_HIDDEN: foo
fn main() {
// ANCHOR: foo
    let x = add_one(2);
// ANCHOR_END: foo
    assert_eq!(x, 3);
}

fn add_one(num: i32) -> i32 {
    num + 1
}
// ANCHOR_HIDDEN_END: foo

// More code

Untitled2

Untitled

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions