CN110262784A - A kind of cloud notes implementation method and device - Google Patents
A kind of cloud notes implementation method and device Download PDFInfo
- Publication number
- CN110262784A CN110262784A CN201910492747.6A CN201910492747A CN110262784A CN 110262784 A CN110262784 A CN 110262784A CN 201910492747 A CN201910492747 A CN 201910492747A CN 110262784 A CN110262784 A CN 110262784A
- Authority
- CN
- China
- Prior art keywords
- code data
- cloud
- language
- error correction
- code
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
Abstract
The present invention provides a kind of cloud notes implementation method and devices, wherein this method comprises: receiving the edit instruction of edit code;According to the editor of the edit instruction completion code data;Error correction is carried out to the code data;Cloud note document is generated according to the code data;The cloud note document is sent to Cloud Server, is saved for the Cloud Server, therefore, the problem of notepad cannot carry out specialized customization to programmer in the related technology is can solve, realizes and customize cloud notes for programmer's specialization.
Description
Technical field
The present invention relates to the communications fields, take down notes implementation method and device in particular to a kind of cloud.
Background technique
Cloud notes are a cross-platform simple and quick personal note memorandum tools, and operation interface is succinct efficient.Meeting
Record, schedule, life memorandum, fantasy, happy interesting episode and any burst inspiration all can fast recording to cloud notes,
More support to take pictures and add picture as notes attachment.
A few money Yun Biji popular at present: there are Yun Biji, impression notes and to know notes.By logging in cloud notes
Website can manage your personal note by direct editing on a web browser, realize the efficient cooperating with mobile client.
The cloud service of cloud notes is transmitted and is saved using stringent data encryption form, can effective guarantee your private
Close notes are from leakage.
Cloud notes there are long-standing, since the concept for having " cloud ", people are just put into notes on cloud, record life
Living and work dribs and drabs.
It is more popular on the market, and relatively tool popularity has following a few money Yun Biji: impression notes are to know that notes, news fly
Notes, graphite notes, have cloud notes etc..
Current various clouds take down notes supported function
The basic functions such as Markdown support, speech-to-text, scanning file, ORC (optical character identification), encryption;
Quickly introduce file.The importing of energy batch, can be introduced directly into single document, single picture.Supported web page shearing is received
Hiding;
Function of search facilitates and shares file to other people;
Export is convenient, supports the export of the multi-format documents such as PDF, batch is supported to export;
It synchronizes fast, highly-safe.
But it has the disadvantage in that
Free version is not able to satisfy the normal demand of general user.There is cloud initial storage space there was only 2G, registering daily can
Lead 0-10M.Impression notes monthly upload flow and there was only 60M, can only synchronize 2 equipment.To know that the notes trial period is 100 days, and
Not long-term free version.
" label " function fails to play maximum efficiency.In the setting of interface, the taxonomic revision setting of a few money softwares is roughly the same,
Difference is that " having " and " to know " supports multistage catalogue, and " impression notes " only have second-level directory, this is primarily due to impression
The product thinking of notes is label type management, that is, file is managed by labelling, rather than folder-type.Effective label
Formula management cooperates to the function of search of power, helpful to the formation of personal knowledge base.When we search for a label word
It waits, associated content can all be taken out, facilitate us and connect all relevancies, form the knowledge knowledge network of oneself.
This is the spotlight of impression notes." having " and also have " label " function " to know ", but at present search get up not enough it is convenient with
Precisely.The integrated management mode for only combining " label " and file could not only facilitate management, but also can fast search document.
Without professional customization, each industry does not customize content specifically, and the use habit of each industry has not
Same feature and individual character.Current various notes are all versatility notes, all without being the exclusive customization of industry.
Aiming at the problem that notepad in the related technology cannot carry out specialized customization to programmer, solution party is not yet proposed
Case.
Summary of the invention
The embodiment of the invention provides a kind of cloud notes implementation method and devices, at least to solve notepad in the related technology
The problem of specialized customization cannot being carried out to programmer.
According to one embodiment of present invention, a kind of cloud notes implementation method is provided, comprising:
Receive the edit instruction of edit code;
According to the editor of the edit instruction completion code data;
Error correction is carried out to the code data;
Cloud note document is generated according to the code data;
The cloud note document is sent to Cloud Server, is saved for the Cloud Server.
Optionally, before generating cloud note document according to the code data, the method also includes:
Identify the category of language of the code data;
The tag attributes of markup language type are added for the cloud note document.
Optionally, carrying out error correction to the code data includes:
Described in being obtained from the species characteristic, format character and/or grammar property of pre-stored different computer languages
The corresponding species characteristic of the category of language of code data, format character and/or grammar property;
According to the corresponding species characteristic of the category of language of the code data, format character and/or grammar property to described
Code data carries out error correction;
Label is to error correction position.
Optionally, after marking error correction position, the method also includes:
Whether prompt agrees to error correction;
After receiving the agreement for agreeing to error correction instruction, the error correction to the code data is completed, and cancel and entangling to described
Wrong position to error correction flag.
Optionally, before generating cloud note document according to the code data, the method also includes:
Described in being obtained from the species characteristic, format character and/or grammar property of pre-stored different computer languages
The corresponding species characteristic of the category of language of code data, format character and/or grammar property;
According to the corresponding species characteristic of the category of language of the code data, format character and/or grammar property to described
Code data optimizes;
Mark position to be optimized.
Optionally, the method also includes:
One or more prioritization schemes are being provided in the position-scheduled range of optimization;
Receive the selection instruction of selection prioritization scheme;
It completes to optimize the code data according to the selection instruction, and cancels the mark to be optimized to the optimization position
Note.
Optionally, generating cloud note document according to the code data includes:
The category of language for obtaining the code data from the format character of pre-stored different computer languages is corresponding
Format character;
The format of the code data is standardized according to the category of language of the code data corresponding format character
Change processing.
Optionally, after generating cloud note document according to the code data, the method also includes:
Receive the encrypted instruction encrypted to the cloud note document;
The cloud note document is encrypted according to the encrypted instruction.
According to another embodiment of the invention, a kind of cloud notes realization device is additionally provided, comprising:
First receiving module, for receiving the edit instruction of edit code;
Module is completed, for the editor according to the edit instruction completion code data;
Correction module, for the code data carry out error correction '
Generation module, for generating cloud note document according to the code data;
Sending module is saved for the cloud note document to be sent to Cloud Server for the Cloud Server.
Optionally, described device further include:
Identification module, for identification category of language of the code data;
Adding module, for adding the tag attributes of markup language type for the cloud note document.
Optionally, the correction module includes:
Acquiring unit, it is special for species characteristic, format character and/or the grammer from pre-stored different computer languages
The corresponding species characteristic of category of language, format character and/or the grammar property of the code data are obtained in sign;
Error correction unit, for the corresponding species characteristic of category of language, format character and/or the language according to the code data
Method feature carries out error correction to the code data;
Marking unit, for marking to error correction position.
Optionally, described device further include:
Cue module, for prompting whether agree to error correction;
First cancels module, for after receiving the agreement for agreeing to error correction instruction, the code data to be entangled in completion
Mistake, and cancel to the error correction position to error correction flag.
Optionally, before generating cloud note document according to the code data, described device further include:
Module is obtained, it is special for species characteristic, format character and/or the grammer from pre-stored different computer languages
The corresponding species characteristic of category of language, format character and/or the grammar property of the code data are obtained in sign;
Optimization module, for the corresponding species characteristic of category of language, format character and/or the language according to the code data
Method feature optimizes the code data;
Mark module, for marking position to be optimized.
Optionally, described device further include:
Module is provided, for providing one or more prioritization schemes in the position-scheduled range of optimization;
Second receiving module, for receiving the selection instruction of selection prioritization scheme;
Second cancels module, for completing to optimize the code data according to the selection instruction, and cancels to described
Optimize the label to be optimized of position.
Optionally, the generation module, is also used to
The category of language for obtaining the code data from the format character of pre-stored different computer languages is corresponding
Format character;
The format of the code data is standardized according to the category of language of the code data corresponding format character
Change processing.
Optionally, the method also includes:
Third receiving module, for receiving the encrypted instruction encrypted to the cloud note document;
Encrypting module, for the cloud note document to be encrypted according to the encrypted instruction.
According to still another embodiment of the invention, a kind of storage medium is additionally provided, meter is stored in the storage medium
Calculation machine program, wherein the computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
According to still another embodiment of the invention, a kind of electronic device, including memory and processor are additionally provided, it is described
Computer program is stored in memory, the processor is arranged to run the computer program to execute any of the above-described
Step in embodiment of the method.
Through the invention, the edit instruction of edit code is received;According to the editor of the edit instruction completion code data;
Error correction is carried out to the code data;Cloud note document is generated according to the code data;The cloud note document is sent to
Cloud Server is saved for the Cloud Server, and therefore, can solve notepad in the related technology cannot carry out profession to programmer
The problem of changing customization realizes and customizes cloud notes for programmer's specialization.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is a kind of hardware block diagram of the mobile terminal of cloud notes implementation method of the embodiment of the present invention;
Fig. 2 is the flow chart of cloud notes implementation method according to an embodiment of the present invention;
Fig. 3 is the block architecture diagram that code cloud notes according to an embodiment of the present invention are realized;
Fig. 4 is the schematic diagram that code cloud notes according to an embodiment of the present invention are realized;
Fig. 5 is the block diagram of cloud notes realization device according to an embodiment of the present invention;
Fig. 6 is the block diagram of cloud notes realization device according to the preferred embodiment of the invention.
Specific embodiment
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting
In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
It should be noted that description and claims of this specification and term " first " in above-mentioned attached drawing, "
Two " etc. be to be used to distinguish similar objects, without being used to describe a particular order or precedence order.
Embodiment 1
Embodiment of the method provided by the embodiment of the present application one can be in mobile terminal, terminal or similar fortune
It calculates and is executed in device.For running on mobile terminals, Fig. 1 is a kind of shifting of cloud notes implementation method of the embodiment of the present invention
The hardware block diagram of dynamic terminal, as shown in Figure 1, mobile terminal 10 may include one or more (only showing one in Fig. 1)
(processor 102 can include but is not limited to the processing dress of Micro-processor MCV or programmable logic device FPGA etc. to processor 102
Set) and memory 104 for storing data, optionally, above-mentioned mobile terminal can also include the transmission for communication function
Equipment 106 and input-output equipment 108.It will appreciated by the skilled person that structure shown in FIG. 1 is only to illustrate,
It does not cause to limit to the structure of above-mentioned mobile terminal.For example, mobile terminal 10 may also include it is more than shown in Fig. 1 or
Less component, or with the configuration different from shown in Fig. 1.
Memory 104 can be used for storing computer program, for example, the software program and module of application software, such as this hair
The corresponding computer program of message method of reseptance in bright embodiment, processor 102 are stored in memory 104 by operation
Computer program realizes above-mentioned method thereby executing various function application and data processing.Memory 104 may include
High speed random access memory, may also include nonvolatile memory, as one or more magnetic storage device, flash memory or its
His non-volatile solid state memory.In some instances, memory 104 can further comprise remotely setting relative to processor 102
The memory set, these remote memories can pass through network connection to mobile terminal 10.The example of above-mentioned network includes but not
It is limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Transmitting device 106 is used to that data to be received or sent via a network.Above-mentioned network specific example may include
The wireless network that the communication providers of mobile terminal 10 provide.In an example, transmitting device 106 includes a Network adaptation
Device (Network Interface Controller, referred to as NIC), can be connected by base station with other network equipments to
It can be communicated with internet.In an example, transmitting device 106 can for radio frequency (Radio Frequency, referred to as
RF) module is used to wirelessly be communicated with internet.
Based on above-mentioned mobile terminal, a kind of cloud notes implementation method is present embodiments provided, Fig. 2 is real according to the present invention
The flow chart for applying the cloud notes implementation method of example, as shown in Fig. 2, the process includes the following steps:
Step S202 receives the edit instruction of edit code;
Step S204, according to the editor of the edit instruction completion code data;
Step S206 carries out error correction to the code data;
Step S208 generates cloud note document according to the code data;
The cloud note document is sent to Cloud Server by step S210, is saved for the Cloud Server.
S202 to S210 through the above steps receives the edit instruction of edit code;Generation is completed according to the edit instruction
The editor of code data;Error correction is carried out to the code data;Cloud note document is generated according to the code data;By the cloud pen
Note document is sent to Cloud Server, saves for the Cloud Server, therefore, can solve notepad in the related technology cannot be to journey
Sequence person carries out the problem of specialized customization, realizes and customizes cloud notes for programmer's specialization.
Optionally, before generating cloud note document according to the code data, the language kind of the code data is identified
Class;The tag attributes of markup language type are added for the cloud note document.Classification Management is realized to notes, is convenient for subsequent inspection
Rope.
In the embodiment of the present invention, above-mentioned steps S206 be can specifically include:
Described in being obtained from the species characteristic, format character and/or grammar property of pre-stored different computer languages
The corresponding species characteristic of the category of language of code data, format character and/or grammar property;
According to the corresponding species characteristic of the category of language of the code data, format character and/or grammar property to described
Code data carries out error correction;
Label is to error correction position.
Optionally, after marking error correction position, prompt whether agree to error correction;Receiving the agreement instruction for agreeing to error correction
Afterwards, the error correction to the code data is completed, and is cancelled to the error correction position to error correction flag.Effectively increase code number
According to accuracy, user is only to select to agree to that error correction can complete the modification in inaccurate place, improves the experience of user
Effect.
In the embodiment of the present invention, code can also be optimized, specifically, cloud pen generated according to the code data
Before remembering document, institute is obtained from the species characteristic, format character and/or grammar property of pre-stored different computer languages
State the corresponding species characteristic of category of language, format character and/or the grammar property of code data;According to the language of the code data
The corresponding species characteristic of speech type, format character and/or grammar property optimize the code data;Mark position to be optimized
It sets.The place that can optimize is marked, is checked for user.
Further, one or more prioritization schemes are being provided in the position-scheduled range of optimization;Receive selection
The selection instruction of prioritization scheme;It completes to optimize the code data according to the selection instruction, and cancels to the optimization position
The label to be optimized set.By providing a user preferred embodiment, user can choose prioritization scheme and be replaced, and further increase
User experience.
In the embodiment of the present invention, above-mentioned steps S208 be can specifically include:
The category of language for obtaining the code data from the format character of pre-stored different computer languages is corresponding
Format character;
The format of the code data is standardized according to the category of language of the code data corresponding format character
Change processing.
In the embodiment of the present invention, in order to ensure safety, document can also be encrypted, raw according to the code data
After cloud note document, the encrypted instruction encrypted to the cloud note document is received;According to the encrypted instruction to institute
Cloud note document is stated to be encrypted.
Recognizer person of the embodiment of the present invention pastes the type of code in notes, and after doing format manipulation, then saves.
The software realization held including Android phone end, iOS mobile phone terminal, web terminal etc. three.A part is basic function, another part
It is programmer's industry customization function, following major function is provided:
1. possessing good free version function: user group can preferably be attracted by possessing good free version function, be mentioned
For occupation rate of market.
2. interface is arranged: in conjunction with " label " and file, comprehensive way to manage can facilitate management text using file
Part, and file search can be fast and accurately carried out by label.
3. the editting function of notes: simple, intuitive is had in newly-built notes, supports office external member, supports markdown,
It supports speech-to-text, supports scanning file, support ORC identification, support the encryption of account, file, file.It is prior,
When saving code for numerous friends programmers, code optimization is carried out, speech category is distinguished, formats the content of preservation.
4. import feature: can support single file, single picture import, support batch import, can a key import information
Platform is expansible, and the notes of other mainstreams is supported to import.Supported web page cuts hiding, efficient to handle and synchronous, support recycle bin mechanism.
5. export function: supporting character search in image, be more easily shared with other people, support that generating picture shares, branch
The export of the multi-formats such as PDF is held, supports disposable export All Files export, while supporting single file folder export.
6. safety: promoting safety from file encryption, file backup, url authentication, Verification etc..
Facilitate friend programmer to arrange in terms of life, work, study and saves daily notes, more efficient quick processing
Thing on hand.Fig. 3 is the block architecture diagram that code cloud notes according to an embodiment of the present invention are realized, as shown in Figure 3, comprising:
1.SpringCloud entirety micro services frame.
2.Nginx does load balancing, and high concurrent access is born in reverse proxy.
3.Zuul dynamic routing, url authentication, Verification provide security of system.
4.Eureka Server+Eureka Client service registration, provides micro services.
5.Config extracts common configuration, using the long-range management configuration file of git, convenient for centralized management.
6.Redis caching, distributed lock, RDB or AOF persistent storage data provide high-performance storage.
7.Zookeeper+Kafka, distributed height are handled up asynchronous message
It is managed for user's notes.User can carry out following operation using system:
(1) it line module: logs in, register, exiting, Modify password;
(2) notebook module: notebook is created, deletes, updates, is checked;
(3) notes module: notes are created, are deleted, updating, checking, shifting;
(4) share and collection module: notes are shared, collect, are searched for;
(5) active module: activity checks activity, checks movable notes.
Fig. 4 is the schematic diagram that code cloud notes according to an embodiment of the present invention are realized, as shown in Figure 4, comprising:
(1), client: jQuery+Ajax
Server-side: Spring (MVC, IOC, AOP), MyBatis
JQuery: simplify client js and Ajax programming
Ajax: asynchronous transmission HTTP request realizes the Local treatment of the page
SpringMVC: receiving HTTP request, calls Service Component processing, returns to JSON result
SpringIOC: management Controller, Service, Dao, relationship injection
MyBatis: for realizing database manipulation, Dao component is completed
AOP: affairs and abnormal log incision processing are realized
(2) programming mode combines: Ajax+SpringMVC+JSON
(3) SpringMVC mode process (JSP response):
Request -- > DispatcherServlet-- > HandlerMapping-- > Controller-- > return
ModelAndView/String-->ViewResolver-->JSP
SpringMVC mode process (JSON response):
Request -- > DispatcherServlet-- > HandlerMapping-- > Controller-- > returned data object
Or data acquisition system -- >@ResponseBody-- > calling jackson packet is added before Controller method by returned data pair
It exports as changing into JSON character string to client.
Data type is required to include in the embodiment of the present invention:
Strongly-typed foretells-emphasize data type;
Weak type voice-ignores data type.
Computer language in the embodiment of the present invention includes:
1, low-level language
Machine language, assembler language and symbolic language-assembler source program have to pass through compilation, generate file destination,
Then it executes
2, high-level language
BASIC (True basic, Qbasic, Virtual Basic), C, C++, PASCAL, FORTRAN, intelligent language
Say (LISP, Prolog), dynamic language (Python, PHP, Ruby, Lua) etc..High-level language source program can use explanation, volume
Translate two ways execution.Usually use latter.The C language used is exactly the latter used.
Computer advanced language includes: compiled language, interpreted languages and compiled language.
Compiled language refers to before application source program execution, just by program source code " translation " at object code (machine
Device language), therefore its target program can be detached from its language environment and independently execute, use is more convenient, efficiency is higher.But it applies
Program once needs to modify, it is necessary to source code is first modified, then recompilate the new file destination (* .OBJ) of generation to execute,
Only file destination is modified very inconvenient without source code.Most of programming language is all compiled now.Compile journey
Sequence is stored in another file after source program is translated into target program, which can be detached from compiler and directly count
It is run multiple times on calculation machine.Most software product is all that user is issued in the form of target program, is not only convenient for directly running,
Other people are made to be difficult to usurp technology C therein, C++, Fortran, Visual Foxpro, Pascal, Delphi, Ada all again simultaneously
It is that compiling is realized.
In the realization of interpreted languages, translater does not generate target machine code, but generates centre easy to carry out
Code, this intermediate code are different with machine code, and the explanation of intermediate code cannot be directly used by software support
Hardware, it is lower that software interpreter normally results in execution efficiency.It with the program that interpreted languages are write can be managed by another
Solve the interpretive program execution of intermediate code.Unlike compiler, the task of interpretive program is one by one by source program
Sentence is construed to executable machine instruction, does not need to execute again after source program to be translated into object code.The advantages of releasing program
When being that while statement syntax error occurs, programmer can be caused immediately note that and programmer just can be carried out during program development
Correction.For explanation type Basic language, needs a special interpreter to explain and execute Basic program, every language only exists
Execution is just translated.Every execute of this interpreted languages is once just translated once, thus inefficiency.Generally, dynamic language
It is all explanation type, such as Tcl, Perl, Ruby, VBScript, JavaScript.
Java is very special, and java applet is also required to compile, but is known as machine language without direct compilation, but compiles and claim
For bytecode, bytecode then is executed with interpretive mode on a java virtual machine.Python's also uses the volume of similar Java
Mode is translated, Python program is first compiled into Python bytecode, is then born by a special Python bytecode interpreter
Duty, which is explained, executes bytecode.
3, specific language
The data base query language of Drawing Language and DBMS in CAD system.
4, scripting language
(Script language, scripting language, scripting programming language) is
In order to shorten traditional computer volume for writing-compiling-and linking-run (edit-compile-link-run) process and creating
Cheng Yuyan.Scripting language has corresponding script engine generally to explain and execute.They generally require interpreter and could run.One
A script is usually to explain to run and decomplier.Scripting language is usually constructed with simple, easy to learn, easy-to-use characteristic, and purpose is exactly uncommon
Hope programmer can be allowed to be rapidly completed program to write work.
Implementation there are two types of dynamic routine is general, first is that binary mode, first is that script mode.Binary mode is first
The program that we are write is compiled, and is become machine recognizable instruction code (such as .exe file), is then executed again.It is this
We can only execute, use compiled program, but can't see his contents of program.
Shell script with respect to general procedure develop for relatively natural language, can not be compiled but explain and hold
Row, conducive to quick exploitation or the control of some light weights.The execution of general scripting language is only related with specific executor,
So as long as there have the interpretive program of corresponding language to accomplish in system to be cross-platform.Script script is using a kind of specific
Descriptive language, according to the executable file that certain format is write, also referred to as macro or autoexec.Script usually can be by
Application program is temporarily called and is executed.All kinds of scripts are widely used in webpage design at present, because script not only can be with
Reduce the scale of webpage and improve web page browsing speed, and the performance of webpage can be enriched, such as animation, sound.
Script is briefly exactly the written order of a rule, these written orders are it may be seen that (such as can be with
Checked, edited with notepad opening), shell script is an interpreter by system, by the translation of the one rule when being executed
It is executed at machine recognizable instruction, and by program sequence.Because of the script processes of translation together more when being executed, it
It is more slightly lower than binary program execution efficiency.Our various dynamic languages above-mentioned, such as ASP, PHP, CGI, JSP
Deng being all scripting language.By current service regulation, fictitious host computer website can only use scripting language realize script English for
Script.Actually script is exactly program, the programming language for typically having application program to provide.Application program includes browser
(javascript, VBScript), authoring tool, the batch processing language of the macro and authoring system of application program can also be with
It is included into script etc.The difference of VB, C language that script is usually used us etc. is mainly:
1, script grammer is fairly simple, is easier to grasp;
2, script and application program are closely related, so including the function of opposite application program itself;
3, the problem of script does not have versatility generally, can handle is limited in scope.
4, scripting language (JavaScript, VBscript etc.) is between HTML and C, C++, Java, the programming languages such as C# it
Between.HTML is commonly used in formatting and link text.And programming language is commonly used in issuing the instruction of a series of complex to machine.
5, scripting language also has many similar places to programming language, and function is more alike compared with programming language,
Also relate to variable.Maximum difference is the grammer of programming language and regular more stringent and complicated one between programming language
A little
6, with the relationship of program code: script is also a kind of language, is equally made of program code.Note: scripting language
Generally there is corresponding script engine to explain and execute.They generally require interpreter and could run.JAVASCRIPT,ASP,
PHP, PERL, Nuva are scripting languages.After C/C++ compiling, link, the exe file independently executed can be formed.
7, scripting language is a kind of explanatory language, such as vbscript, javascript,
Installshieldscript etc., it can be compiled into binary code not as c/c++ etc., in the form of executable file
There are scripting languages not to need to compile, and can directly use, be taken charge of the explanation by interpreter.
8, scripting language typically exists in the form of text, is similar to a kind of order for one thing, if you establish
One program, is aaa.exe, and can opening file that .aa is extension name, you are writing for .aa file specifies a socket gauge
Then (grammer), after others has write .aa file, your program understands the intention of coder with this rule, and makes back
Answer so, it is a kind of program that plain text saves that this set of rule, which is exactly the extension that scripting language script is autoexec,
In general computer script program is the combination that a series of determining control computers carry out arithmetic operation movement, wherein
Certain logic branch etc. may be implemented.
Emerging programming language
Perl is good at word processing, and it is exactly to write complicated height for convenience that python, which is good at the beginning of numerical value processing Perl is designed,
The system script of effect, it is also should most commonly used scripting programming language.It is equivalent to Swiss Army Knife in terms of programming, to word
Symbol, text file processing capacity are very strong, and task of requiring shell+sed+awk+C that could complete in the past only needs perl script just
It can complete.And application field is being widened always, supports Object-oriented Programming Design.The dynamic of Python object-oriented is public
Language altogether, is suitable for Script Programming and quickly exploitation, its most significant feature be as compiler language (such as C) and scripting language (such as
Perl the feature of the bridge joint language between), the power that it has, expandability and object-oriented becomes answers on a large scale
Use program development tools.
The embodiment of the present invention needs to carry out the conclusion of taxeme according to the above different category of language, to be reminded
And error correction.The format of different programming languages is also required to conclude, when to saving, code is formatted.
The embodiment of the present invention makes the exclusive cloud notes of a industry for friend programmer, powerful, efficiently convenient,
It is capable of handling Optimized code.Create computer language feature database, species characteristic, format computer language at present on the market
Feature and grammaticality feature are saved in database.When saving code, code is saved in caching, such as redis, search
Language feature library carries out retrieval comparison to the code of caching.After analyzing determining category of language, tag attributes are added for notes,
Facilitate data search.During full-text search, the word segment not being inconsistent with grammaticality feature is made particularization label,
Remind user that code needs to correct there may be problem herein.The end PC uses mouse-over such as to prompt effect, provides correctly for user
Grammar property and modification.Format character in cache file comparison database regenerates formatted new file,
It saves.
Embodiment 2
The embodiment of the present invention, additionally provides a kind of cloud notes realization device, and Fig. 5 is cloud notes according to an embodiment of the present invention
The block diagram of realization device, as shown in Figure 5, comprising:
First receiving module 52, for receiving the edit instruction of edit code;
Module 54 is completed, for the editor according to the edit instruction completion code data;
Correction module 56, for the code data carry out error correction '
Generation module 58, for generating cloud note document according to the code data;
Sending module 510 is saved for the cloud note document to be sent to Cloud Server for the Cloud Server.
Fig. 6 is the block diagram of cloud notes realization device according to the preferred embodiment of the invention, as shown in fig. 6, described device is also
Include:
Identification module 62, for identification category of language of the code data;
Adding module 64, for adding the tag attributes of markup language type for the cloud note document.
Optionally, the correction module 56 includes:
Acquiring unit, it is special for species characteristic, format character and/or the grammer from pre-stored different computer languages
The corresponding species characteristic of category of language, format character and/or the grammar property of the code data are obtained in sign;
Error correction unit, for the corresponding species characteristic of category of language, format character and/or the language according to the code data
Method feature carries out error correction to the code data;
Marking unit, for marking to error correction position.
Optionally, described device further include:
Cue module, for prompting whether agree to error correction;
First cancels module, for after receiving the agreement for agreeing to error correction instruction, the code data to be entangled in completion
Mistake, and cancel to the error correction position to error correction flag.
Optionally, before generating cloud note document according to the code data, described device further include:
Module is obtained, it is special for species characteristic, format character and/or the grammer from pre-stored different computer languages
The corresponding species characteristic of category of language, format character and/or the grammar property of the code data are obtained in sign;
Optimization module, for the corresponding species characteristic of category of language, format character and/or the language according to the code data
Method feature optimizes the code data;
Mark module, for marking position to be optimized.
Optionally, described device further include:
Module is provided, for providing one or more prioritization schemes in the position-scheduled range of optimization;
Second receiving module, for receiving the selection instruction of selection prioritization scheme;
Second cancels module, for completing to optimize the code data according to the selection instruction, and cancels to described
Optimize the label to be optimized of position.
Optionally, the generation module 58, is also used to
The category of language for obtaining the code data from the format character of pre-stored different computer languages is corresponding
Format character;
The format of the code data is standardized according to the category of language of the code data corresponding format character
Change processing.
Optionally, described device further include:
Third receiving module, for receiving the encrypted instruction encrypted to the cloud note document;
Encrypting module, for the cloud note document to be encrypted according to the encrypted instruction.
It should be noted that above-mentioned modules can be realized by software or hardware, for the latter, Ke Yitong
Following manner realization is crossed, but not limited to this: above-mentioned module is respectively positioned in same processor;Alternatively, above-mentioned modules are with any
Combined form is located in different processors.
Embodiment 3
The embodiments of the present invention also provide a kind of storage medium, computer program is stored in the storage medium, wherein
The computer program is arranged to execute the step in any of the above-described embodiment of the method when operation.
Optionally, in the present embodiment, above-mentioned storage medium can be set to store by executing based on following steps
Calculation machine program:
S11 receives the edit instruction of edit code;
S12, according to the editor of the edit instruction completion code data;
S13 carries out error correction to the code data;
S14 generates cloud note document according to the code data;
The cloud note document is sent to Cloud Server by S15, is saved for the Cloud Server.
Optionally, in the present embodiment, above-mentioned storage medium can include but is not limited to: USB flash disk, read-only memory (Read-
Only Memory, referred to as ROM), it is random access memory (Random Access Memory, referred to as RAM), mobile hard
The various media that can store computer program such as disk, magnetic or disk.
Embodiment 6
The embodiments of the present invention also provide a kind of electronic device, including memory and processor, stored in the memory
There is computer program, which is arranged to run computer program to execute the step in any of the above-described embodiment of the method
Suddenly.
Optionally, above-mentioned electronic device can also include transmission device and input-output equipment, wherein the transmission device
It is connected with above-mentioned processor, which connects with above-mentioned processor.
Optionally, in the present embodiment, above-mentioned processor can be set to execute following steps by computer program:
S11 receives the edit instruction of edit code;
S12, according to the editor of the edit instruction completion code data;
S13 carries out error correction to the code data;
S14 generates cloud note document according to the code data;
The cloud note document is sent to Cloud Server by S15, is saved for the Cloud Server.
Optionally, the specific example in the present embodiment can be with reference to described in above-described embodiment and optional embodiment
Example, details are not described herein for the present embodiment.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general
Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed
Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored
It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein
Out or description the step of, perhaps they are fabricated to each integrated circuit modules or by them multiple modules or
Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.It is all within principle of the invention, it is made it is any modification, etc.
With replacement, improvement etc., should all be included in the protection scope of the present invention.
Claims (11)
1. a kind of cloud takes down notes implementation method characterized by comprising
Receive the edit instruction of edit code;
According to the editor of the edit instruction completion code data;
Error correction is carried out to the code data;
Cloud note document is generated according to the code data;
The cloud note document is sent to Cloud Server, is saved for the Cloud Server.
2. the method according to claim 1, wherein according to the code data generate cloud note document it
Before, the method also includes:
Identify the category of language of the code data;
The tag attributes of markup language type are added for the cloud note document.
3. according to the method described in claim 2, it is characterized in that, including: to code data progress error correction
The code is obtained from the species characteristic, format character and/or grammar property of pre-stored different computer languages
The corresponding species characteristic of the category of language of data, format character and/or grammar property;
According to the corresponding species characteristic of the category of language of the code data, format character and/or grammar property to the code
Data carry out error correction;
Label is to error correction position.
4. according to the method described in claim 3, it is characterized in that, after marking error correction position, the method also includes:
Whether prompt agrees to error correction;
After receiving the agreement for agreeing to error correction instruction, the error correction to the code data is completed, and cancel to the error correction bit
Set to error correction flag.
5. according to the method described in claim 2, it is characterized in that, according to the code data generate cloud note document it
Before, the method also includes:
The code is obtained from the species characteristic, format character and/or grammar property of pre-stored different computer languages
The corresponding species characteristic of the category of language of data, format character and/or grammar property;
According to the corresponding species characteristic of the category of language of the code data, format character and/or grammar property to the code
Data optimize;
Mark position to be optimized.
6. according to the method described in claim 5, it is characterized in that, the method also includes:
One or more prioritization schemes are being provided in the position-scheduled range of optimization;
Receive the selection instruction of selection prioritization scheme;
It completes to optimize the code data according to the selection instruction, and cancels the label to be optimized to the optimization position.
7. the method according to any one of claim 2 to 6, which is characterized in that generate cloud pen according to the code data
Remember that document includes:
The corresponding format of category of language of the code data is obtained from the format character of pre-stored different computer languages
Feature;
It is carried out at standardization according to format of the corresponding format character of the category of language of the code data to the code data
Reason.
8. the method according to the description of claim 7 is characterized in that according to the code data generate cloud note document it
Afterwards, the method also includes:
Receive the encrypted instruction encrypted to the cloud note document;
The cloud note document is encrypted according to the encrypted instruction.
9. a kind of cloud takes down notes realization device characterized by comprising
First receiving module, for receiving the edit instruction of edit code;
Module is completed, for the editor according to the edit instruction completion code data;
Correction module, for carrying out error correction to the code data;
Generation module, for generating cloud note document according to the code data;
Sending module is saved for the cloud note document to be sent to Cloud Server for the Cloud Server.
10. a kind of storage medium, which is characterized in that be stored with computer program in the storage medium, wherein the computer
Program is arranged to execute the method described in any item of the claim 1 to 8 when operation.
11. a kind of electronic device, including memory and processor, which is characterized in that be stored with computer journey in the memory
Sequence, the processor are arranged to run the computer program to execute the side described in any item of the claim 1 to 8
Method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910492747.6A CN110262784A (en) | 2019-06-06 | 2019-06-06 | A kind of cloud notes implementation method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910492747.6A CN110262784A (en) | 2019-06-06 | 2019-06-06 | A kind of cloud notes implementation method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110262784A true CN110262784A (en) | 2019-09-20 |
Family
ID=67917186
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910492747.6A Withdrawn CN110262784A (en) | 2019-06-06 | 2019-06-06 | A kind of cloud notes implementation method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110262784A (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111259224A (en) * | 2020-02-20 | 2020-06-09 | 山东旗帜信息有限公司 | Data crawling method and device |
CN111985189A (en) * | 2020-08-20 | 2020-11-24 | 朵镇山 | Modular note system suitable for deep learning and thinking and electronic conversion method |
CN114564195A (en) * | 2022-02-17 | 2022-05-31 | 山东华云三维科技有限公司 | Secondary development method of cloud CAD platform based on B/S architecture |
CN116450745A (en) * | 2023-04-26 | 2023-07-18 | 深圳市英唐数码科技有限公司 | Multi-device-based note file operation method, system and readable storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040187080A1 (en) * | 1999-09-20 | 2004-09-23 | Dell Products L.P. | XML server pages language |
CN103543994A (en) * | 2012-07-12 | 2014-01-29 | 北京睿思汇通移动科技有限公司 | Code management method based on mobile terminal browser |
CN104064188A (en) * | 2013-03-22 | 2014-09-24 | 中兴通讯股份有限公司 | Method for realizing cloud note with voice turned into characters and device thereof |
US9934200B1 (en) * | 2013-02-28 | 2018-04-03 | Ca, Inc. | Method and system for implementing dynamic note formatting and display |
CN108304190A (en) * | 2016-09-22 | 2018-07-20 | 百度在线网络技术(北京)有限公司 | Network shop generation method and device |
-
2019
- 2019-06-06 CN CN201910492747.6A patent/CN110262784A/en not_active Withdrawn
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040187080A1 (en) * | 1999-09-20 | 2004-09-23 | Dell Products L.P. | XML server pages language |
CN103543994A (en) * | 2012-07-12 | 2014-01-29 | 北京睿思汇通移动科技有限公司 | Code management method based on mobile terminal browser |
US9934200B1 (en) * | 2013-02-28 | 2018-04-03 | Ca, Inc. | Method and system for implementing dynamic note formatting and display |
CN104064188A (en) * | 2013-03-22 | 2014-09-24 | 中兴通讯股份有限公司 | Method for realizing cloud note with voice turned into characters and device thereof |
CN108304190A (en) * | 2016-09-22 | 2018-07-20 | 百度在线网络技术(北京)有限公司 | Network shop generation method and device |
Non-Patent Citations (4)
Title |
---|
DEDI RIANTO RAHADI等: "Implementation Of Cloud Computing In The Sector Of Small And Medium Enterprises The Best Practice In Palembang", 《PROCEEDINGS OF THE 1ST INTERNATIONAL CONFERENCE ON INFORMATION SYSTEMS FOR BUSINESS COMPETITIVENESS (ICISBC) 2011》 * |
姜然等: "基于多重编码的个性化笔记设计方法研究", 《设计》 * |
解凯等: "云笔记系统", 《北京印刷学院学报》 * |
语雀官网: "语雀使用文档", 《HTTPS://WWW.BOOKSTACK.CN/READ/YUQUE/1.MD》 * |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111259224A (en) * | 2020-02-20 | 2020-06-09 | 山东旗帜信息有限公司 | Data crawling method and device |
CN111259224B (en) * | 2020-02-20 | 2023-02-21 | 山东旗帜信息有限公司 | Data crawling method and device |
CN111985189A (en) * | 2020-08-20 | 2020-11-24 | 朵镇山 | Modular note system suitable for deep learning and thinking and electronic conversion method |
CN111985189B (en) * | 2020-08-20 | 2024-04-12 | 朵镇山 | Modularized note system and electronic conversion method suitable for deep learning and thinking |
CN114564195A (en) * | 2022-02-17 | 2022-05-31 | 山东华云三维科技有限公司 | Secondary development method of cloud CAD platform based on B/S architecture |
CN114564195B (en) * | 2022-02-17 | 2024-02-27 | 山东华云三维科技有限公司 | B/S architecture-based secondary development method for cloud CAD platform |
CN116450745A (en) * | 2023-04-26 | 2023-07-18 | 深圳市英唐数码科技有限公司 | Multi-device-based note file operation method, system and readable storage medium |
CN116450745B (en) * | 2023-04-26 | 2024-02-02 | 深圳市英唐数码科技有限公司 | Multi-device-based note file operation method, system and readable storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110262784A (en) | A kind of cloud notes implementation method and device | |
CN111708539B (en) | Application program code conversion method and device, electronic equipment and storage medium | |
CN103164249B (en) | Extension mechanism for script compiler | |
Williams et al. | Web Database Applications with PHP and MySQL: Building Effective Database-Driven Web Sites | |
US7761786B2 (en) | Reusable XPath validation expressions | |
Mardan | Express. js Guide: The Comprehensive Book on Express. js | |
CN107798069A (en) | Method, apparatus and computer-readable medium for data loading | |
US9652209B2 (en) | Static analysis and reconstruction of deep link handling in compiled applications | |
Atkinson | Core PHP Programming: using PHP to build dynamic Web sites | |
CN104461531B (en) | A kind of implementation method of reporting system SQL | |
CN104407863A (en) | Abstract control model programming device and method | |
Aggarwal | Flask framework cookbook | |
CN102567455A (en) | Method and system of managing documents using weighted prevalence data for statements | |
CN110795697A (en) | Logic expression obtaining method and device, storage medium and electronic device | |
CN110020358A (en) | Method and apparatus for generating dynamic page | |
Yellavula | Building RESTful Web services with Go: Learn how to build powerful RESTful APIs with Golang that scale gracefully | |
KR100762712B1 (en) | Method for transforming of electronic document based on mapping rule and system thereof | |
Davis | Modern programming made easy: using Java, Scala, Groovy, and JavaScript | |
Serafini | Apache Solr beginner's guide | |
Maia | Building Web Applications with Flask | |
CN110399187A (en) | A kind for the treatment of method and apparatus of language resource | |
JP7064680B1 (en) | Program code automatic generation system | |
Stehle et al. | A porting method for coordinated multiplatform evolution | |
CN110297768A (en) | Method, apparatus, equipment and the storage medium of prototype SDK compatible analog device debug | |
KR102645915B1 (en) | Method for regenerating resumes by computing device, and the same computing device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190920 |
|
WW01 | Invention patent application withdrawn after publication |