Skip to content

Commit

Permalink
Revert "Revert "Merge pull request #695 from github/detect-prose""
Browse files Browse the repository at this point in the history
  • Loading branch information
gjtorikian committed Dec 8, 2013
1 parent 2315cdb commit 5c602d0
Show file tree
Hide file tree
Showing 8 changed files with 514 additions and 1 deletion.
37 changes: 36 additions & 1 deletion lib/linguist/languages.yml
Expand Up @@ -23,7 +23,7 @@
# Any additions or modifications (even trivial) should have corresponding
# test change in `test/test_blob.rb`.
#
# Please keep this list alphabetized.
# Please keep this list alphabetized. Capitalization comes before lower case.

ABAP:
type: programming
Expand Down Expand Up @@ -103,6 +103,16 @@ Arduino:
lexer: C++
primary_extension: .ino

AsciiDoc:
type: markup
lexer: Text only
ace_mode: asciidoc
wrap: true
primary_extension: .asciidoc
extensions:
- .adoc
- .asc

Assembly:
type: programming
lexer: NASM
Expand Down Expand Up @@ -364,6 +374,12 @@ Cpp-ObjDump:
- .c++objdump
- .cxx-objdump

Creole:
type: markup
lexer: Text only
wrap: true
primary_extension: .creole

Cucumber:
lexer: Gherkin
primary_extension: .feature
Expand Down Expand Up @@ -976,6 +992,12 @@ Max:
- .mxt
- .pat

MediaWiki:
type: markup
lexer: Text only
wrap: true
primary_extension: .mediawiki

MiniD: # Legacy
searchable: false
primary_extension: .minid # Dummy extension
Expand Down Expand Up @@ -1111,6 +1133,12 @@ OpenEdge ABL:
- abl
primary_extension: .p

Org:
type: markup
lexer: Text only
wrap: true
primary_extension: .org

Oxygene:
type: programming
lexer: Text only
Expand Down Expand Up @@ -1291,6 +1319,13 @@ REALbasic:
- .rbtbar
- .rbuistate

RDoc:
type: markup
lexer: Text only
ace_mode: rdoc
wrap: true
primary_extension: .rdoc

RHTML:
type: markup
group: HTML
Expand Down
13 changes: 13 additions & 0 deletions samples/AsciiDoc/encoding.asciidoc
@@ -0,0 +1,13 @@
Gregory Romé has written an AsciiDoc plugin for the Redmine project management application.

https://github.com/foo-users/foo
へと `vicmd` キーマップを足してみている試み、
アニメーションgifです。

tag::romé[]
Gregory Romé has written an AsciiDoc plugin for the Redmine project management application.
end::romé[]

== Überschrift

* Codierungen sind verrückt auf älteren Versionen von Ruby
10 changes: 10 additions & 0 deletions samples/AsciiDoc/list.asc
@@ -0,0 +1,10 @@
AsciiDoc Home Page
==================

Example Articles
~~~~~~~~~~~~~~~~
- Item 1

- Item 2
- Item 3
25 changes: 25 additions & 0 deletions samples/AsciiDoc/sample.adoc
@@ -0,0 +1,25 @@
Document Title
==============
Doc Writer <thedoc@asciidoctor.org>
:idprefix: id_

Preamble paragraph.

NOTE: This is test, only a test.

== Section A

*Section A* paragraph.

=== Section A Subsection

*Section A* 'subsection' paragraph.

== Section B

*Section B* paragraph.

.Section B list
* Item 1
* Item 2
* Item 3
47 changes: 47 additions & 0 deletions samples/Creole/creole.creole
@@ -0,0 +1,47 @@
= Creole

Creole is a Creole-to-HTML converter for Creole, the lightweight markup
language (http://wikicreole.org/). Github uses this converter to render *.creole files.

Project page on github:

* http://github.com/minad/creole
Travis-CI:

* https://travis-ci.org/minad/creole
RDOC:

* http://rdoc.info/projects/minad/creole
== INSTALLATION

{{{
gem install creole
}}}

== SYNOPSIS

{{{
require 'creole'
html = Creole.creolize('== Creole text')
}}}

== BUGS

If you found a bug, please report it at the Creole project's tracker
on GitHub:

http://github.com/minad/creole/issues

== AUTHORS

* Lars Christensen (larsch)
* Daniel Mendler (minad)
== LICENSE

Creole is Copyright (c) 2008 - 2013 Lars Christensen, Daniel Mendler. It is free software, and
may be redistributed under the terms specified in the README file of
the Ruby distribution.
90 changes: 90 additions & 0 deletions samples/MediaWiki/mediawiki.mediawiki
@@ -0,0 +1,90 @@

= Overview =

The GDB Tracepoint Analysis feature is an extension to the Tracing and Monitoring Framework that allows the visualization and analysis of C/C++ tracepoint data collected by GDB and stored to a log file.

= Getting Started =

The feature can be installed from the Eclipse update site by selecting '''Linux Tools''' > '''GDB Tracepoint Analysis'''.

The feature requires GDB version 7.2 or later to be installed on the local host. The executable program 'gdb' must be found in the path.

= GDB Trace Perspective =

To open the perspective, select '''Window''' > '''Open Perspective''' > '''Other...''' > '''GDB Trace'''.

The perspective includes the following views by default:

* '''Project Explorer''': This view shows the projects in the workspace and is used to create and manage Tracing projects.
* '''Debug''': This view shows the running C/C++ Postmortem Debugger instances and displays the thread and stack trace associated with a tracepoint.
* '''Trace Control''': This view shows the status of the debugger and allows navigation of trace records.
* '''Console''': This view displays console output of the C/C++ Postmortem Debugger.
The editor area contains the '''Events''' and '''C/C++''' editors when a GDB Trace is opened.

[[Image:images/GDBTracePerspective.png]]

= Collecting Tracepoint Data =

Collecting the C/C++ tracepoint data is outside the scope of this feature. It can be done from the GDB command line or by using the CDT debug component within Eclipse. See the CDT FAQ entry in the [[#References | References]] section.

= Importing Tracepoint Data =

Some information in this section is redundant with the LTTng User Guide. For further details, see the LTTng User Guide entry in the [[#References | References]] section.

== Creating a Tracing Project ==

In the '''Project Explorer''' view, right-click and select '''New''' > '''Project...''' from the context menu. In the '''New Project''' dialog, select '''Tracing''' > '''Tracing Project''', click '''Next''', name your project and click '''Finish'''.

== Importing a GDB Trace ==

In your tracing project, right-click on the '''Traces''' folder and select '''Import...'''. Browse to, or enter, a source directory. Select the trace file in the tree. Optionally set the trace type to '''GDB : GDB Trace'''. Click '''Finish'''.

Alternatively, the trace can be drag & dropped to the '''Traces''' folder from any external file manager.

== Selecting the GDB Trace Type ==

Right-click the imported trace in the '''Traces''' folder and choose '''Select Trace Type...''' > '''GDB''' > '''GDB Trace''' from the context menu. This step can be omitted if the trace type was selected at import.

The trace will be updated with the GDB icon [[Image:images/gdb_icon16.png]].

== Selecting the Trace Executable ==

The executable file that created the tracepoint data must be identified so that the C/C++ Postmortem Debugger can be launched properly.

Right-click the GDB trace in the '''Traces''' folder and choose '''Select Trace Executable...''' from the context menu. Browse to, or enter, the path of the executable file and press '''OK'''.

The selected file must be recognized by GDB as an executable.

= Visualizing Tracepoint Data =

== Opening a GDB Trace ==

In the '''Traces''' folder, double-click the GDB trace or right-click it and select '''Open''' from the context menu.

The tracepoint data will be opened in an Events editor, and a C/C++ Postmortem Debugger instance will be launched.

If available in the workspace, the source code corresponding to the first trace record will also be opened in a C/C++ editor.

At this point it is recommended to relocate the Events editor outside of the default editor area, so that it is not hidden by the C/C++ editor.

== Viewing Trace Data ==

In the Events editor, a table is shown with one row for each trace record. The '''Trace Frame''' column shows the sequential trace record number. The '''Tracepoint''' column shows the number assigned by GDB at collection time for this tracepoint. The '''File''' column shows the file name, line number and method where the tracepoint was set. The '''Content''' column shows the data collected at run-time by the tracepoint.

Searching and filtering can be done on any column by entering a regular expression in the column header.

== Navigating the GDB Trace ==

Trace records can be selected in the Events editor using the keyboard or mouse. The C/C++ Postmortem Debugger in the '''Debug''' view will be updated to show the stack trace of the current trace record.

The trace can also be navigated from the '''Trace Control''' view by clicking the '''Next Trace Record''' or '''Previous Trace Record''' buttons. The Events editor and '''Debug''' views will be updated.

= References =

* [http://wiki.eclipse.org/index.php/Linux_Tools_Project/LTTng2/User_Guide LTTng User Guide]
* [http://wiki.eclipse.org/CDT/User/FAQ#How_can_I_trace_my_application_using_C.2FC.2B.2B_Tracepoints.3F CDT FAQ - How can I trace my application using C/C++ Tracepoints?]
= Updating This Document =

This document is maintained in a collaborative wiki. If you wish to update or modify this document please visit [http://wiki.eclipse.org/index.php/Linux_Tools_Project/GDB_Tracepoint_Analysis/User_Guide http://wiki.eclipse.org/Linux_Tools_Project/GDB_Tracepoint_Analysis/User_Guide]

3 comments on commit 5c602d0

@Sawah2017
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ##@سسسوآآآح****

@Sawah2017
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

testapp`

@Sawah2017
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

سسسوآآآح

Please sign in to comment.