A plugin for the IntelliJ platform (IntelliJ IDEA, RubyMine, etc) that provides support for the AsciiDoc markup language. You can install the plugin (named "AsciiDoc") from the plugins section inside your Jetbrains IDE or download it from the Jetbrains Plugin Repository.
If you want to use the JavaFX instead of the Swing preview, you’ll need to run IntelliJ with 64bit Java. From 2017.1 onwards 64bit Java is included even in the Windows versions. See https://intellij-support.jetbrains.com/hc/en-us/articles/206544879-Selecting-the-JDK-version-the-IDE-will-run-under for more information.
If your IntelliJ distribution doesn’t come with 64bit Java, you’ll need to have an environment variable IDEA_JDK
or IDEA_JDK64
pointing to the installation folder of a 64bit Java.
See Jetbrains support database for more information.
-
Avoiding deadlock on JavaFX initialization (#207)
-
Requiring 2017.2 as minimum for this plugin
-
Add MathJax support in JavaFX preview #201
-
JavaFX preview is now the default for new installations of the plugin
-
Include DejaVu fonts for improved and consistent preview #184
-
Fix NullPointerExceptions when used with IntelliJ Language Injection and Fragment Editor #194
-
Support inspections to convert markdown and old style AsciiDoc headings to modern AsciiDoc headings #185
-
JRuby runtime updated to 9.1.8.0 to work with recent JDK versions (still, internal Jetbrains JRE is the only supported version) #187
-
Support Icon fonts (thanks to @matthiasbalke) / #182
-
Update to asciidoctorj-1.5.6 (aka asciidoctor-1.5.6.1) and asciidoctorj-diagram-1.5.4.1
-
Support "search everywhere" (double Shift) and "goto by name - Symbol…" (Ctrl+Shift+Alt+N) for all AsciiDoc section headings - just enter a part of the heading
-
Support Markdown style sections (starting with '#') in syntax highlighting
-
Headings in Darcula theme preview are now light grey for better readability
-
Update to asciidoctor 1.5.5/asciidoctor-diagram 1.5.4
-
Capture Asciidoctor messages on stdout/stderr and write them to IDE notifications
-
Close files when images are shown in preview
-
Set focus in editor when re-opening file
-
Fix "line must be non negative" error when clicking on preview
-
Make click-on-link-to-open and click-on-preview-to-set-cursor in JavaFX preview compatible with Java 8 u111+
-
Formatting actions from the toolbar should not throw exceptions when triggered at the beginning or end of the document
-
Plugin is now build using the Gradle and gradle-intellij-plugin This should make contributing and releasing easier. Thanks Jiawen Geng!
-
Asciidoctor’s temporary files are now created in a temporary folder per opened document. Thanks @agorges!
-
Improved handling of trailing spaces in syntax highlighting.
-
Fixed code/preview sync for nested HTML (i.e. NOTE)
-
Updated block parsing to support two styles of headings.
-
Block starts and ends are need to be aligned in length and shape when parsed.
-
Improved darcula support for JavaFX. More block types are using proper dark background and light text colors.
-
Added darcula theme for JavaFX preview
-
Clicking on JavaFX preview will set cursor position in editor (thanks to @kastork for the idea)
-
Initialization message appears only during initialization
-
No error message if user switches to a setup where JavaFX preview is no longer available.
-
fixed detection of Mac 64 JVM to be able to activate JavaFX preview
-
click-on-url for JavaFX improved, when slow-loading external images are referenced
-
revised constrained/unconstrained detection
-
Fix problem in syntax highlighting leading to PSI Parser Exceptions
-
refreshing images on JavaFX only if their content has changed to save memory consumption
-
Limiting JavaFX preview to 64bit platforms due to problems especially with Windows OpenJDK 32bit (as default on Windows).
-
correct usage of constrained/unconstrained AsciiDoc formatting
-
JavaFX Preview will automatically scroll to the cursor position of the editor
-
JavaFX preview will automatically open links in the systems’s default browser
-
Caching rendering instances of Asciidoctor for better performance
IntelliJ 15 (including AppCode 3.3, CLion 1.2, DataGrip 1.0, PhpStorm 10, PyCharm 5, RubyMine 8, WebStorm 11) is the new minimum version required for this release.
-
Fix problem in syntax highlighting leading to PSI Parser Exceptions
-
disable automatically refreshing images on JavaFX (to be re-enabled in 0.15.x)
-
Performance improvement: render preview only when visible
-
Don’t show AsciiDoc preview actions in other Editors
-
additional compatibility fixes for IntelliJ 15.x
-
make compatible with IntelliJ 15.x again.
This should include: AppCode 3.3, CLion 1.2, DataGrip 1.0, PhpStorm 10, PyCharm 5, RubyMine 8, WebStorm 11
-
New JavaFX preview and real split view
-
Update to asciidoctorj 1.5.4.1 and asciidoctorj-diagram 1.5.0
-
Since 0.8 Fixed incompatibility with non-IDEA IDE’s, thanks to Harro Lissenberg
-
Since 0.7: Right click on a document to apply basic formatting or create tables.
-
Since 0.6: refactor Markdown to AsciiDoc. Right click on a file, or use the Refactor menu, and the Markdown document will be replaced by the AsciiDoc equivalent. Also supports undo, in case you’re not happy with the result!
-
Since 0.4: recognizes the AsciiDoc file extension (.adoc, .asciidoc, .ad)
-
Since 0.4: provides a two-pane AsciiDoc preview editor based on AsciidoctorJ with Live preview.
If you are missing features, please don’t hesitate to let me know on Twitter: @epragt or make an issue in the issue tracker!
This project uses AsciiDoctorJ and JRuby for the rendering of the AsciiDoc content.
For the conversion of Markdown to AsciiDoc, we use Pegdown and the Markdown to AsciiDoc converter.
This plugin is built using Gradle. If you build or run it the first time it will download the community edition of IntelliJ automatically.
If you have developed the plugin before it changed to Gradle you might want to remove the contents of your .idea
folder to trigger a re-import of the Gradle project.
To build this plugin, you need to run:
./gradlew -Dfile.encoding=UTF-8 buildPlugin
The ZIP file with plugin to distribute will be located in build/distributions
.
To run the plugin for development you’ll need to start
./gradlew -Dfile.encoding=UTF-8 runIdea
Copyright © 2013-2017 Julien Viet and Erik Pragt. Released under the Apache License, Version 2.0 (see LICENSE).
This plugin is based on the Intellij Markdown plugin by Julien Nicoulaud.
Also, great help was received from Harro Lissenberg, Alexander Schwartz and Dan Allen. Thank you all for your support!