Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stylesheet support for the viewer // 2.0 fork #72

Closed
wants to merge 20 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .project
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
<buildSpec>
</buildSpec>
<natures>
<nature>org.eclipse.m2e.core.maven2Nature</nature>
</natures>
</projectDescription>
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,23 @@ Increase version

### History

- 1.0
- 1.0 Initial release
- 1.1 (24 Feb 2014) by Telmo Brugnara @tbrugz #40
- Rich color preferences #35 #37
- Rich color preferences #35 #37
- 1.2 (Jan 2015) by Olivier Martin @oliviermartin #52
- Update preview when the file is saved #48
- MultiMarkdown metadata #49
- GitHub code blocks #50
- detecting links #51
- open GFM View from Markdown View #53
- 1.3 (Nov 2016) by Gerald Rosenberg
- Update viewer to recognize stylesheets
- Add preference choice to select between
- a default stylesheet
- multiple builtin stylesheets
- stylesheets located on the platform filesystem
- Close viewer when editor closes
- Enabled updates to occur without changing the viewer vertical document position
- Updated to Java 1.8/Neon/Tycho 0.24

<a href="http://with-eclipse.github.io/" target="_blank"><img alt="with-Eclipse logo" src="http://with-eclipse.github.io/with-eclipse-1.jpg" /></a>
22 changes: 20 additions & 2 deletions feature/feature.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<feature
id="markdown.editor.feature"
label="Markdown Editor"
version="1.2.0.qualifier"
provider-name="Winterwell">
version="1.3.0.qualifier"
provider-name="Winterwell Associates Ltd">

<description url="http://www.winterwell.com/software/markdown-editor.php">
Support for editing the text-markup language Markdown. Also provides
Expand Down Expand Up @@ -40,6 +40,24 @@ The Markdown syntax is copyright (c) 2004, John Gruber. It is used under a BSD-s
<update label="Winterwell Eclipse Plugins (markdown)" url="http://www.winterwell.com/software/updatesite/"/>
</url>

<requires>
<import plugin="org.eclipse.ui"/>
<import plugin="org.eclipse.core.runtime"/>
<import plugin="org.eclipse.ui.editors"/>
<import plugin="org.eclipse.jface.text"/>
<import plugin="org.eclipse.core.resources"/>
<import plugin="org.eclipse.ui.views"/>
<import plugin="org.eclipse.jface"/>
<import plugin="org.eclipse.swt"/>
<import plugin="org.eclipse.ui.workbench"/>
<import plugin="org.eclipse.ui.workbench.texteditor"/>
<import plugin="com.ibm.icu"/>
<import plugin="org.eclipse.core.variables"/>
<import plugin="org.eclipse.ui.forms"/>
<import plugin="org.eclipse.ui.ide"/>
<import plugin="org.eclipse.debug.ui"/>
</requires>

<plugin
id="winterwell.markdown"
download-size="0"
Expand Down
6 changes: 3 additions & 3 deletions feature/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
<parent>
<groupId>com.winterwell.markdown</groupId>
<artifactId>markdown.editor.parent</artifactId>
<version>1.2.0-SNAPSHOT</version>
<version>1.3.0-SNAPSHOT</version>
</parent>

<artifactId>markdown.editor.feature</artifactId>
<packaging>eclipse-feature</packaging>

<name>Markdown Editor (feature)</name>
<description>Markdown Editor (feature)</description>
<name>Markdown Editor feature</name>
<description>Markdown Editor feature</description>

</project>

16 changes: 10 additions & 6 deletions plugin/.classpath
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
<classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
<classpathentry kind="src" path="src"/>
<classpathentry kind="lib" path="lib/markdownj-1.0.2b4-0.3.0.jar"/>
<classpathentry kind="lib" path="lib/net.sf.paperclips_1.0.1.jar"/>
<classpathentry kind="lib" path="lib/winterwell.utils.jar"/>
<classpathentry kind="output" path="bin"/>
<classpathentry kind="src" path="src/"/>
<classpathentry exported="true" kind="lib" path="lib/markdownj-core.jar"/>
<classpathentry exported="true" kind="lib" path="lib/commonmark.jar"/>
<classpathentry exported="true" kind="lib" path="lib/txtmark.jar"/>
<classpathentry exported="true" kind="lib" path="lib/pegdown.jar" sourcepath="C:/Users/Gbr/.m2/repository/org/pegdown"/>
<classpathentry exported="true" kind="lib" path="lib/parboiled-java.jar"/>
<classpathentry exported="true" kind="lib" path="lib/parboiled-core.jar"/>
<classpathentry exported="true" kind="lib" path="lib/asm-all.jar"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
2 changes: 2 additions & 0 deletions plugin/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/utils/
/attic/
51 changes: 19 additions & 32 deletions plugin/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,27 @@ Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Markdown
Bundle-SymbolicName: winterwell.markdown;singleton:=true
Bundle-Version: 1.2.0.qualifier
Bundle-Activator: winterwell.markdown.Activator
Bundle-Version: 1.3.0.qualifier
Bundle-Activator: winterwell.markdown.MarkdownUI
Bundle-Vendor: Winterwell Associates Ltd
Require-Bundle: org.eclipse.ui,
org.eclipse.core.runtime,
org.eclipse.ui.editors,
org.eclipse.jface.text,
Require-Bundle: org.eclipse.core.runtime,
org.eclipse.core.resources,
org.eclipse.swt,
org.eclipse.ui.editors,
org.eclipse.ui.views,
org.eclipse.core.commands,
org.eclipse.ui.workbench,
org.eclipse.jface,
org.eclipse.swt,
org.eclipse.ui.workbench
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Bundle-ActivationPolicy: lazy
Import-Package: org.eclipse.core.internal.resources,
org.eclipse.jface.text,
org.eclipse.ui.texteditor
Bundle-ClassPath: .,target/classes,lib/markdownj-1.0.2b4-0.3.0.jar,
lib/winterwell.utils.jar,
lib/net.sf.paperclips_1.0.1.jar
Export-Package: com.petebevin.markdown,
com.petebevin.markdown.test,
net.sf.paperclips,
net.sf.paperclips.decorator,
winterwell.markdown,
winterwell.markdown.editors,
winterwell.markdown.pagemodel,
winterwell.markdown.preferences,
winterwell.markdown.views,
winterwell.utils,
winterwell.utils.containers,
winterwell.utils.gui,
winterwell.utils.io,
winterwell.utils.reporting,
winterwell.utils.threads,
winterwell.utils.time,
winterwell.utils.web
org.eclipse.ui.workbench.texteditor
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Bundle-ActivationPolicy: lazy
Bundle-ClassPath: .,
lib/markdownj-core.jar,
lib/commonmark.jar,
lib/txtmark.jar,
lib/pegdown.jar,
lib/parboiled-java.jar,
lib/parboiled-core.jar,
lib/asm-all.jar
Import-Package: org.eclipse.ui
19 changes: 11 additions & 8 deletions plugin/build.properties
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
source.. = src/
output.. = target/classes/
bin.includes = META-INF/,\
plugin.xml,\
icons/,\
.,\
lib/
src.includes = src/,\
pom.xml,\
plugin.xml,\
resources/,\
lib/markdownj-core.jar,\
lib/commonmark.jar,\
lib/pegdown.jar,\
lib/txtmark.jar,\
lib/parboiled-java.jar,\
lib/parboiled-core.jar,\
lib/asm-all.jar
src.includes = pom.xml,\
icons/,\
lib/,\
.project,\
.classpath,\
META-INF/,\
build.properties
resources/
Binary file added plugin/icons/markdown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added plugin/lib/asm-all.jar
Binary file not shown.
Binary file added plugin/lib/commonmark.jar
Binary file not shown.
Binary file removed plugin/lib/markdownj-1.0.2b4-0.3.0.jar
Binary file not shown.
Binary file added plugin/lib/markdownj-core.jar
Binary file not shown.
Binary file removed plugin/lib/net.sf.paperclips_1.0.1.jar
Binary file not shown.
Binary file added plugin/lib/parboiled-core.jar
Binary file not shown.
Binary file added plugin/lib/parboiled-java.jar
Binary file not shown.
Binary file added plugin/lib/pegdown.jar
Binary file not shown.
Binary file added plugin/lib/txtmark.jar
Binary file not shown.
Binary file removed plugin/lib/winterwell.utils.jar
Binary file not shown.
Loading