"Code" (Question Interface Type)
"Code" (Question Interface Type)
"Code"
provides an input field for writing code.
Properties
- In QuestionInterface["Code",props], props is an Association that supports the following keys:
-
"Prompt" None text asking the user a question - Additionally, options for InputField are supported, including:
-
Background Automatic input field background color FieldHint Null expression to display when the input field is empty ImageSize {Scaled[0.7],Automatic} the overall image size of the displayed input field
Corresponding AssessmentFunction
- "Code" is the automatically assigned interface type for an AssessmentFunction of the form AssessmentFunction[HoldPattern[c],"CodeEquivalence"].
Examples
open all close allScope (2)
See Also
QuestionInterface QuestionObject
Question Interface Types: ShortAnswer MultipleShortAnswers
Comparison Methods: CodeEquivalence