Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!
Hello,
I'm writing a software to share Livecode scripts with syntax highlithing. I obtained my goal on HTML, now I'm upgrading it with phpbb version (like this forum). This is a possible result:
on mouseUp #copy text setthetextoffield field1 to temp copyword1to -1offield field1 setthevisibleoffield"avviso"totrue wait1second setthevisibleoffield"avviso"tofalse end mouseUp
Do you have any idea to mantain code indentation (spaces)?
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
Its a great idea to have code indentation in forum post. Unfortunately, the default phpBB install does not support indentation/tabs but I have since added a custom indent BBCode that allows indentation. This is should now be available from the custom BBcode menu bar. If you wish to add this to your LiveCode script, the following is the code used
Please see below your script with indentation applied-
on mouseUp #copy text setthetextoffield field1 to temp copyword1to -1offield field1 setthevisibleoffield"avviso"totrue wait1second setthevisibleoffield"avviso"tofalse end mouseUp
Its a great idea to have code indentation in forum post. Unfortunately, the default phpBB install does not support indentation/tabs but I have since added a custom indent BBCode that allows indentation. This is should now be available from the custom BBcode menu bar. If you wish to add this to your LiveCode script, the following is the code used
Hi Neil,
what do you think of http://qbnz.com/highlighter/ ? It's a mod for phpbb to add sytax highlighting to every code posted (it supports over 100 programming languages).
If you confirm me that it could be applied to this forum, I could start to work on the livecode parser file.
Please let me know
Livecode Wiki: http://livecode.wikia.com
My blog: https://livecode-blogger.blogspot.com
To post code use this: http://tinyurl.com/ogp6d5w
@Neil
The new indent-tag is really useful, one now doesn't has to use this often lists.
For single lines I used option-space (this works, is effectively your ' ').
Hope you are fine (and the LC user offspring).