variables - What language is used in this '.format' file -
i have piece of code here used in custom program developing small assessments called "layout.format":
# display assessment time limit timed=<time_limit>%session.timelimitmin%</time_limit> nottimed=<time_limit/> # display randomization key used generate assessment print_random_key=%print_random_key_text% print_no_random_key=%no_print_random_key_text% # page break definitions pagebreak= start_page_break= end_page_break= # definitions show answer boxes different question types answer_box_mc=<input type="radio"> answer_box_mr=<input type="checkbox"> answer_box_num=<input type="text" size=%choice.width%> answer_box_tm=<textarea cols="%choice.width%" rows="%choice.height%" >%choice.value%</textarea> answer_box_fib=<input type="text" size=%choice.width%>
i can tell using html parts generate html page end user, wondered main language in snippet haven't seen type of comment or variable syntax before , interesting in editing file alter our outcomes.
edit: realise syntax possibly might not language, , used instructions parser of kind inside application - style makes me believe programming language of type , if knows resembles appreciate knowing :)
it seems me kind of configuration file. , have not idea language it, if @ all.
if want edit it, or understand how works, that's think it, way works , being parsed:
the number sign (#)
mentions comments , every other row configuration. believe program go through every row isn't comment, , split @ equal sign (=)
. later, replaces placeholders surrounded percentage (%)
%session.timelimitmin%
or %choice.width%
dynamic values given @ run time or taken somewhere. , finally, inject tags in kind of xml/html format.
following rest of code should able understand it's doing, how being used , when. try see if program parses file, uses external library or else. give more information file.
Comments
Post a Comment