-
dear ohm people, i am very greatful to your work and ohm. it is wonderful. i write a simple scripting language for pupils to handle our most simple game engine. now, i have a problem and i can not figure it out by myself. i can not find an answer, i really tried hard. below is my simple grammar so far. in the editor it works great with additional spaces. but when i try to call match on my page then it does not succeed with any additional space. test script (with spaces at the beginning of both lines): the test script does succeed in the ohm-editor but not on in my script. why is that? SchubuScript {
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
i solved it myself. in the contenteditable div (script window), the css rule: white-space: pre; was necessary. |
Beta Was this translation helpful? Give feedback.
i solved it myself. in the contenteditable div (script window), the css rule: white-space: pre; was necessary.
cheers,
lev