Auto-complete of Wikidot code

Status: New request

Created by leiger 10 Jun 2010 07:22

rating: +7+x

When I add [[code]] (without using the button) it'd be nice if [[/code]] was automatically added as well.

The same goes for [[module]] ... [[/module]] and [[div]] ... [[/div]] and [[span]] ... [[/span]]


wdavatar?user=leiger
leiger

12 Oct 2010 23:16. Edited 0 times. (Edit, Permalink)
This is most likely one of those things that will be difficult to put in the settings dialog, so it's best to get it done properly from the beginning.

The wikidot editor doesn't auto-complete everything. For example, it does do it for code blocks, but does not do it for modules.

Is there any preference here for which ones should be auto-completed, and which ones shouldn't?

Included page "inc:signature" does not exist (create it now)

wdavatar?user=bcammo
bcammo

13 Oct 2010 10:38. Edited 0 times. (Edit, Permalink)
I think these should be auto-completed…

  • modules (except those that can be completed in a single line (e.g. the NewPage module)).
    • in particular, the CSS & ListPages modules would be good - if adding them all is too much!
  • [[div]]
  • [[code]]
  • [[html]]
  • [[table]], [[row]] and [[cell]]
  • block formatting elements (e.g. [[<]])
  • [[tabview]] and [[tab]]

Personally, I think spans should not be auto-completed, because you can use a span on a single line. The same goes for iftags.

For divs, can they still be auto-completed when using custom class & style definitions? The same goes for the modules too.

Included page "inc:signature" does not exist (create it now)

wdavatar?user=leiger
leiger

13 Oct 2010 10:57. Edited 0 times. (Edit, Permalink)
With spans I was thinking that you would type "[[span]]", then STE would automatically add "[[/span]]" to the end then move the cursor back in between the two tags. The assumption would be that spans are always used on a single line, and that divs are always used on separate lines.

Included page "inc:signature" does not exist (create it now)

wdavatar?user=bcammo
bcammo

13 Oct 2010 11:08. Edited 0 times. (Edit, Permalink)
Sounds good to me. In which case I should have written 'spans should be auto-completed on the same line'.

Included page "inc:signature" does not exist (create it now)

wdavatar?user=pier4r
pier4r

06 Nov 2011 23:50. Edited 0 times. (Edit, Permalink)
Please do it! At least for basic tags, for example [[code]], [[math]], [[div]], [[table]], etc… for customizable tags (for example, [[code]] itself) the user can choose from a listmenu:
- simple code
- code with type

Thanks! I'm currently using Pspad to do (badly) this.

Included page "inc:signature" does not exist (create it now)

wdavatar?user=leiger
leiger

22 Nov 2011 12:04. Edited 0 times. (Edit, Permalink)
Thanks for your feedback about this, and sorry about the late reply.

I'm planning to release an update to STE soon (a few more examinations to get through first), and I'll definitely consider your suggestions.

Version 4.0.0 will be fairly basic and will mainly just have core functionality. Releases after that will be where I start adding the best features back in again, and a few new ones.

Included page "inc:signature" does not exist (create it now)

wdavatar?user=leiger
leiger

24 Sep 2012 02:32. Edited 0 times. (Edit, Permalink)
Moved to 4.xx feedback list

Included page "inc:signature" does not exist (create it now)

Post Reply

Add reply on "Auto-complete of Wikidot code"

CSS Theme, Images and Code on this website are © Shane Smith 2010-2012. All forum posts by users and documentation licensed under Creative Commons BY-NC-SA 3.0 License.