Author Topic: markdown support  (Read 7969 times)

mcu_guy

  • Junior Community Member
  • Posts: 2
  • Hero Points: 0
markdown support
« on: March 12, 2014, 12:55:24 PM »
I see version 18.0 has markdown support.  What exactly is this support?  Is there a viewer to preview the interpreted markdown syntax?  Is there a toolbar to insert markdown format characters? 

If these features are available, how do I activate them.


Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1299
  • Hero Points: 130
Re: markdown support
« Reply #1 on: March 12, 2014, 01:46:39 PM »
If you open a document with .markdown, .md, .mdown extension it will select Markdown mode, or you may select manually Markdown mode with Document > Select Mode....  The current implementation will color code some specific Markdown elements, and it has some smart indenting features useful in editing Markdown.  There currently is not preview mode, that is something that would like to do in a future release.

mcu_guy

  • Junior Community Member
  • Posts: 2
  • Hero Points: 0
Re: markdown support
« Reply #2 on: March 12, 2014, 02:23:11 PM »
Thanks for the info. 

Is there a method to have slickedit automatically open the *.md files in mark down mode?  I went into tools>options>languages>web authoring languages>markdown>file extensions option and added "md".  However, when I open *.md files, it opens in in plain text mode.

I am running the following slickedit version:

SlickEdit 2013 (v18.0.1.2 64-bit)

Lee

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1299
  • Hero Points: 130
Re: markdown support
« Reply #3 on: March 12, 2014, 02:33:38 PM »
That should be the default already, at least with a clean configuration.  If you had opened the file previously, it may still be retaining the Plain-Text mode from previously being opened in per-file history.  You will need to manually reset the Document mode (Document > Select Mode...) for any file already opened by SlickEdit.

jmfrouin

  • Senior Community Member
  • Posts: 103
  • Hero Points: 2
Re: markdown support
« Reply #4 on: September 02, 2019, 07:09:53 PM »
Hi, I reply to this old topic, because I cannot find solution anywhere else.
Is there a markdown preview in SE 2019 ?
Thanks

Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 6867
  • Hero Points: 528
Re: markdown support
« Reply #5 on: September 03, 2019, 01:15:58 AM »
There isn't html preview for markdown yet. Would be useful though.  v24 (SE 2019) is in beta right now.

Graeme

  • Senior Community Member
  • Posts: 2796
  • Hero Points: 347
Re: markdown support
« Reply #6 on: September 03, 2019, 05:15:11 AM »
You can probably do it like this.
Install Typora  https://www.typora.io/#linux

https://support.typora.io/Use-Typora-From-Shell-or-cmd/

Then write a macro to run typora e.g.
typora ~/Document/test.md

Add this code to a macro file and load it using the load module command on the macro menu.
This code is untested...

Code: [Select]
#include "slick.sh"

_command void run_typora() name_info(','VSARG2_READ_ONLY|VSARG2_REQUIRES_EDITORCTL)
{
   if (_no_child_windows()) {
      _message_box("No buffer is open");
      return;
   }
   if (_isno_name(p_DocumentName) || p_buf_name == '') {
      _message_box("No buffer is open");
      return;
   }
   save();
   shell("typora " p_buf_name, "QA");
}

Graeme

  • Senior Community Member
  • Posts: 2796
  • Hero Points: 347
Re: markdown support
« Reply #7 on: September 03, 2019, 05:31:38 AM »
or use the Chrome markdown viewer extension
https://chrome.google.com/webstore/detail/markdown-viewer/ckkdlimhmcjmikdlpkmbgfkaikojcbjk?hl=en

maybe like this
      goto_url("file://" :+ p_buf_name);



SimonHF

  • Community Member
  • Posts: 43
  • Hero Points: 0
Re: markdown support
« Reply #8 on: January 20, 2022, 06:10:42 PM »
I edit a lot of markdown and am currently using stackedit to be able to edit and simultaneously and continuously preview markdown as it is typed in.

Is there a feature in the pipeline like this for SlickEdit? Or has anybody plumbed in something similar?

Please note: I'm not looking for a keyboard shortcut to preview. Looking for a continuous preview :-)