Text highlight Deprecated

Text highlight (Deprecated)

Attributes

  • is_math boolean

    Set to true to have LaTeX or MathML contents to be rendered with mathjax.

    Default: false

  • metadata object

    Object containing additional information about the question.

  • metadata.distractor_rationale string

    Used to display individual response feedback/rationale to the student.

  • metadata.rubric_reference string

    A unique identifier for the rubric to be used with the question - defaults to course rubric if assigned in activity

  • metadata.sample_answer string

    A sample answer to be displayed on the Learnosity Reports API. HTML is supported.

  • metadata.acknowledgements string

    References for any text passages, documents, images etc. used in the question.

  • metadata.distractor_rationale_response_level string/number

    Used for storing the distractor rationales that map to responses in the same order for use/rendering by the host environment.

  • stimulus string

    The question stimulus. This can include text, tables, images, resources and LaTeX entered via the Math Editor.

  • stimulus_review string

    HTML/Text content displayed only in review state rendered above the response area. Supports embedded Feature <span> tags. Will override stimulus in review state.

  • instructor_stimulus string

    HTML/Text content displayed when showInstructorStimulus is set to true on the activity. Supports embedded Feature <span> tags.

  • type string

    Type of question being asked, e.g. 'association'

    Default: "texthighlight"

  • ui_style object

    Object used to control different aspects of the UI

  • ui_style.fontsize string

    Controls the size of base font for this question. Options are among 'small', 'normal', 'large', 'xlarge' and 'xxlarge'.

    Default: "normal"

  • description string

    Deprecated See stimulus_review.
    Description of the question and its context to be displayed. It supports HTML entities.

  • template string

    A string containing markup to be highlighted. HTML supported tags. Surround valid responses within a valid tag for automated marking.

  • word_bound boolean

    Highlighting partial words automatically highlights the nearest full word(s)

    Default: true

  • drag_selection boolean

    Setting this to false will force the user to only be able to select a single word and dragging to select multiple words will be disabled.

    Default: true

  • validation object

    In this section, configure the correct answer(s) for the question.

  • validation.partial_scoring boolean

    Determines if a partial score will be rewarded when not all responses are correct.

    Default: true

  • validation.show_partial_ui boolean

    When partial_scoring is false this determines if the valid UI is shown for each response or only for the whole question

    Default: true

  • validation.valid_score number

    The score for a single correct selection.

    Default: 1

  • validation.penalty_score number

    Negative value indicating the marks deducted for an incorrect response.

    Default: 0

Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.