Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mylyn-dev] adjust visual look in source tab for links ?


Similar with other elements that I can recognize as asciidoc syntax but not yet do full rendering of it would be nice it shows up properly syntax
highlighted.

Any way to do that ?


The WikiText editor doesn't have any features to display invisible
characters differently. The editor uses the MarkupLanguage to parse the
markup source and highlight it accordingly, so if the MarkupLanguage
suppresses some characters there's no way for the editor to know to display
them differently.

I can think of a couple of ways to get this working the way you'd like:
* you could try emitting the invisible characters in a span with CSS
display:none; color: gray

I guess that could work for the preview but would not be great for when actually
generating pdf/html content for external consumption.

* you could look at enhancing the editor to provide more options for
customizing the way that it displays source

Could you point me to where the current mapping from generated "DOM" to
the source view is done? I tried locate it but no good luck yet.

If I recall correctly the editor does not underline links unless the
surrounding markup indicates that the text should be underlined (e.g. in Textile, that would be using +underline+ syntax). The appearance of the editor can be changed using workspace preferences (search for WikiText in the Eclipse preferences). There is no preference for links, feel free to
submit an enhancement to add one.


Okey I will.but Afaics not all of the wiki text languages obey the
preferences.

Markdown (and consequently my asciidoc proposal) does not use the
colors/fonts set in the preferences.


If this is reproducible consider filing a bug.  Keep in mind that open
editors must be closed/reopened to reflect changes to those preferences.

Well, when I open asciidoc or markdown the font used is times new roman not the
serif based font shown in preferences.

I'll open a bug with screenshots.

/max


David



Hence I was wondering what the magic missing piece they are missing ?


There are also preferences for the preview appearance, using CSS. Feel
free to alter your personal preferences.

You can find more detail here:
http://help.eclipse.org/luna/topic/org.eclipse.mylyn.wikitext.help.ui/help/Preferences.html

Feel free to improve the content assist behaviour.

David



On Wed, Apr 8, 2015 at 2:07 PM, Max Rydahl Andersen <manderse@xxxxxxxxxx>
wrote:

Anyone with tips/suggestions for these questions ?

would like to get the asciidoc feature set made at par with the rest and
beyond.

Another thing I was looking for but no answers yet - how do one add
support for
stuff like macros and includes in mylyn wiki ? The includes and macros would need to be processed first before the actual rendering occurs but for
now it seems there is just one pass on the text ?

/max


oh and .. is there a way to set the default style for the preview ?

I really dislike it is rendering in times new roman and not with some
more "timeless" font.

/max

Hi,

While I wait for https://bugs.eclipse.org/bugs/show_bug.cgi?id=418563
to progress, could someone let me know
the answers to the following limits I've been struggling with trying to
implement better asciidoc:

How to alter the visual appearance in the source view ?
===

i.e. how does one underline markup that is a link ?

in markdown *blah* gets bold in both source and rendering,

I got http://dr.dk[link to danish tv] to render as link in the preview
but nothing happens in the source part.
It would be nice to actually have the link syntax somehow indicate it
was detected.

How to have the template content assist not require me to delete
characters
===

if you have a template named 'link' then you use ctrl+space for content
assist and type 'link' to find it in the list press enter.
now it inserts the template *after* link instead of replacing it,
requiring you to remove the link you just typed. Is this expected ?

Same happens if your template is just named '*' and you start typing *
do content assist and choose the * template - it will now let
you fill in the place holders and you still need to delete the '*'

Maybe this is actually more an enhancement than a bug ?


/max
http://about.me/maxandersen
_______________________________________________
mylyn-dev mailing list
mylyn-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/mylyn-dev



/max
http://about.me/maxandersen
_______________________________________________
mylyn-dev mailing list
mylyn-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/mylyn-dev



/max
http://about.me/maxandersen
_______________________________________________
mylyn-dev mailing list
mylyn-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/mylyn-dev




--
David Green
VP of Architecture, Tasktop
Committer, Eclipse Mylyn
http://tasktop.com

_______________________________________________
mylyn-dev mailing list
mylyn-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/mylyn-dev


_______________________________________________
mylyn-dev mailing list
mylyn-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe
from this list, visit
https://dev.eclipse.org/mailman/listinfo/mylyn-dev




--
David Green
VP of Architecture, Tasktop
Committer, Eclipse Mylyn
http://tasktop.com
_______________________________________________
mylyn-dev mailing list
mylyn-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mylyn-dev


/max
http://about.me/maxandersen


Back to the top