Skip to content
This repository has been archived by the owner on Feb 21, 2020. It is now read-only.

Syntax highlight support for markdown preview #21 #58

Closed
wants to merge 7 commits into from
Closed

Syntax highlight support for markdown preview #21 #58

wants to merge 7 commits into from

Conversation

yu1l
Copy link

@yu1l yu1l commented Oct 19, 2017

Hi !
This pull request adds syntax highlight support for markdown preview. - realate to #21
I used react-native-syntax-highlighter for it.

// in app/views/NoteModal.js
...
import NotePreview from '../components/NotePreview'
...
<NotePreview
    style={styles.container}
    theme={"github"}
    syntaxFontSize={14}
    syntaxFontFamily={Platform.OS === 'ios' ? 'Menlo-Regular' : 'monospace'}
    text={this.state.text} />

I tried to find which theme suits boostnote-mobile, but couldn't find.
So I just applied github theme. theme list is here

out2

@yu1l yu1l closed this Oct 22, 2017
@yu1l yu1l deleted the feature/syntax-highlight branch October 22, 2017 16:59
@yu1l yu1l restored the feature/syntax-highlight branch October 22, 2017 17:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant